diff options
| author | scorpion-26 <dev.scorpion26@gmail.com> | 2023-05-03 17:08:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-03 16:08:01 +0100 |
| commit | c3b9326ba15e621324d098e8a6365efac914c7b4 (patch) | |
| tree | 5e812cc669b547c83c34405ee0fc4bf56d503e17 /src/config/ConfigManager.cpp | |
| parent | fd3e6a3bfde6d44a62df4834ccae5b24a1f36469 (diff) | |
Honor debug:enable_stdout_logs on startup (#2197)
* Honor debug:enable_stdout_logs on startup
disableStdout is set via config in CConfigManager::init(), which is
called early in CCompositor::initServer(). initServer() always disables
stdout logs at the end though, even when stdout is enabled is config. With this commit,
the config is respected.
* Don't spam stdout message
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index a839925f..be457e66 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1507,6 +1507,8 @@ void CConfigManager::loadConfigLoadVars() { } Debug::disableStdout = !configValues["debug:enable_stdout_logs"].intValue; + if (Debug::disableStdout && isFirstLaunch) + Debug::log(LOG, "Disabling stdout logs! Check the log for further logs."); for (auto& m : g_pCompositor->m_vMonitors) { // mark blur dirty |
