Skip to content

Commit

Permalink
init_log_streams: check if log_filename is empty.
Browse files Browse the repository at this point in the history
Fixes #3262.
  • Loading branch information
zhangjunphy authored and est31 committed Oct 19, 2015
1 parent 3b9f99e commit df80b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit df80b1a

Please sign in to comment.