aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 53f8a1fb7..d5fcae2f7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -540,7 +540,7 @@ static void init_log_streams(const Settings &cmd_args)
conf_loglev = lev_name[lev_i];
}
- if (conf_loglev.empty()) // No logging
+ if (log_filename.empty() || conf_loglev.empty()) // No logging
return;
LogLevel log_level = Logger::stringToLevel(conf_loglev);