1
0
Fork 0

init_log_streams: check if log_filename is empty.

Fixes #3262.
mutilcraft-mt53
Jun Zhang 2015-10-19 11:47:14 +08:00 committed by est31
parent 3b9f99e0d6
commit df80b1ae5a
1 changed files with 1 additions and 1 deletions

View File

@ -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);