From 31459efbd3e63433b11fbf1005b3aa116d9bc3c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Sep 2017 19:35:50 +0300 Subject: Redirect logging to file after log file opened. If log file open failed, redirect logging back to stdout. --- src/progs/dyecmd/client.cpp | 2 -- src/progs/dyecmd/dyemain.cpp | 1 - 2 files changed, 3 deletions(-) (limited to 'src/progs/dyecmd') diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index 30451dbf5..631469f2b 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -222,8 +222,6 @@ void Client::gameInit() chatLogger->setBaseLogDir(settings.options.chatLogDir); } */ - logger->setLogToStandardOut(config.getBoolValue("logToStandardOut")); - // Log the client version logger->log1(FULL_VERSION); logger->log("Start configPath: " + config.getConfigPath()); diff --git a/src/progs/dyecmd/dyemain.cpp b/src/progs/dyecmd/dyemain.cpp index a5e8a2a34..915d0e580 100644 --- a/src/progs/dyecmd/dyemain.cpp +++ b/src/progs/dyecmd/dyemain.cpp @@ -74,7 +74,6 @@ int main(int argc, char **argv) } logger = new Logger; - logger->setLogToStandardOut(false); SDL::initLogger(); VirtFs::init(argv[0]); -- cgit v1.2.3-60-g2f50