log: Move stdout log disabling to the end of init

This commit is contained in:
vaxerski 2023-04-03 10:41:14 +01:00
parent b1426cad28
commit e6211eef00

View file

@ -86,9 +86,6 @@ void CCompositor::setRandomSplash() {
void CCompositor::initServer() { void CCompositor::initServer() {
Debug::log(LOG, "Disabling stdout logs! Check the log for further logs.");
Debug::disableStdout = true;
m_sWLDisplay = wl_display_create(); m_sWLDisplay = wl_display_create();
m_sWLEventLoop = wl_display_get_event_loop(m_sWLDisplay); m_sWLEventLoop = wl_display_get_event_loop(m_sWLDisplay);
@ -252,6 +249,9 @@ void CCompositor::initServer() {
wlr_multi_backend_add(m_sWLRBackend, m_sWLRHeadlessBackend); wlr_multi_backend_add(m_sWLRBackend, m_sWLRHeadlessBackend);
initManagers(STAGE_LATE); initManagers(STAGE_LATE);
Debug::log(LOG, "Disabling stdout logs! Check the log for further logs.");
Debug::disableStdout = true;
} }
void CCompositor::initAllSignals() { void CCompositor::initAllSignals() {