init_log_streams: check if log_filename is empty.

Fixes #3262.
This commit is contained in:
Jun Zhang 2015-10-19 11:47:14 +08:00 committed by est31
parent 3b9f99e0d6
commit df80b1ae5a

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