logging: don't g_message with --quiet

When `--quiet` is passed (and not --debug), do not log with g_message at
startup.
This commit is contained in:
Dirk-Jan C. Binnema
2025-11-01 09:31:07 +02:00
committed by Seth Ladygo
parent 976b6210fc
commit 4acf708eb9
3 changed files with 12 additions and 7 deletions

View File

@ -184,9 +184,10 @@ Mu::Logger::Logger(const std::string& path, Mu::Logger::Options opts)
NULL,
NULL);
g_message("logging initialized; debug: %s, stdout/stderr: %s",
any_of(opts & Options::Debug) ? "yes" : "no",
any_of(opts & Options::StdOutErr) ? "yes" : "no");
if (none_of(opts & Options::Quiet))
g_message("logging initialized; debug: %s, stdout/stderr: %s",
any_of(opts & Options::Debug) ? "yes" : "no",
any_of(opts & Options::StdOutErr) ? "yes" : "no");
MuLogInitialized = true;
}