summaryrefslogtreecommitdiff
path: root/mu/mu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mu/mu.cc')
-rw-r--r--mu/mu.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/mu/mu.cc b/mu/mu.cc
index 0a580bc..c0b2eb7 100644
--- a/mu/mu.cc
+++ b/mu/mu.cc
@@ -112,8 +112,12 @@ main(int argc, char* argv[]) try
Logger::Options lopts{Logger::Options::None};
if (opts.log_stderr)
lopts |= Logger::Options::StdOutErr;
+
if (opts.debug)
lopts |= Logger::Options::Debug;
+ else if (opts.quiet) // ie. only consider when not in debug mode
+ lopts |= Logger::Options::Quiet;
+
if (!!g_getenv("MU_TEST"))
lopts |= Logger::Options::File;