Commit 64ec702a1875f33ee0dcc8ae28c1686e75b78161

Authored by Wiebe Cazemier
1 parent 88a78820

Fix not logging to stdout

Showing 2 changed files with 4 additions and 1 deletions
main.cpp
... ... @@ -74,7 +74,6 @@ int main(int argc, char *argv[])
74 74 check<std::runtime_error>(register_signal_handers());
75 75 logger->logf(LOG_NOTICE, "Starting FlashMQ");
76 76 mainApp->start();
77   - logger->noLongerLogToStd();
78 77 }
79 78 catch (std::exception &ex)
80 79 {
... ...
mainapp.cpp
... ... @@ -332,6 +332,10 @@ void MainApp::start()
332 332 int listen_fd_plain = createListenSocket(this->listenPort, false);
333 333 int listen_fd_ssl = createListenSocket(this->sslListenPort, true);
334 334  
  335 +#ifdef NDEBUG
  336 + logger->noLongerLogToStd();
  337 +#endif
  338 +
335 339 struct epoll_event ev;
336 340 memset(&ev, 0, sizeof (struct epoll_event));
337 341 ev.data.fd = taskEventFd;
... ...