Skip to content
Snippets Groups Projects
Commit df80b1ae authored by Jun Zhang's avatar Jun Zhang Committed by est31
Browse files

init_log_streams: check if log_filename is empty.

Fixes #3262.
parent 3b9f99e0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment