aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJun Zhang <zhangjunsin@gmail.com>2015-10-19 11:47:14 +0800
committerest31 <MTest31@outlook.com>2015-10-19 12:14:05 +0200
commitdf80b1ae5ae153daf428ec2f0dd4a83a42b28505 (patch)
treec62e6caf9280ffba585d0283e67f00679e921a36 /src
parent3b9f99e0d61957c571ba857301d58ad29fb44527 (diff)
downloadminetest-df80b1ae5ae153daf428ec2f0dd4a83a42b28505.tar.gz
minetest-df80b1ae5ae153daf428ec2f0dd4a83a42b28505.tar.bz2
minetest-df80b1ae5ae153daf428ec2f0dd4a83a42b28505.zip
init_log_streams: check if log_filename is empty.
Fixes #3262.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 53f8a1fb7..d5fcae2f7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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);