Skip to content

Commit

Permalink
Reactivate log on debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Oct 13, 2022
1 parent aa4f4c6 commit 61a34b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ int main(int argc, char* argv[])
return 0;
}

#ifdef NDEBUG
// If we are called from the Jupyter launcher, silence all logging. This
// is important for a JupyterHub configured with cleanup_servers = False:
// Upon restart, spawned single-user servers keep running but without the
Expand All @@ -48,6 +49,7 @@ int main(int argc, char* argv[])
{
std::clog.setstate(std::ios_base::failbit);
}
#endif

auto interpreter = xeus::xkernel::interpreter_ptr(new xeus_octave::xoctave_interpreter());
xeus::register_interpreter(interpreter.get());
Expand Down

0 comments on commit 61a34b3

Please sign in to comment.