mirror of https://github.com/minetest/minetest.git
init_log_streams: check if log_filename is empty.
This commit is contained in:
parent
3b9f99e0d6
commit
066ef038ed
|
@ -540,7 +540,7 @@ static void init_log_streams(const Settings &cmd_args)
|
||||||
conf_loglev = lev_name[lev_i];
|
conf_loglev = lev_name[lev_i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (conf_loglev.empty()) // No logging
|
if (log_filename.empty() || conf_loglev.empty()) // No logging
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LogLevel log_level = Logger::stringToLevel(conf_loglev);
|
LogLevel log_level = Logger::stringToLevel(conf_loglev);
|
||||||
|
|
Loading…
Reference in New Issue