Commit 64ec702a1875f33ee0dcc8ae28c1686e75b78161
1 parent
88a78820
Fix not logging to stdout
Showing
2 changed files
with
4 additions
and
1 deletions
main.cpp
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; | ... | ... |