summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-18 19:35:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-18 19:35:50 +0300
commit31459efbd3e63433b11fbf1005b3aa116d9bc3c1 (patch)
tree052204ada4255cb4f43267f933a2afae1478efd3 /src/progs
parente7537ca6033a13ff1d21aac4a61a49ef325684b6 (diff)
downloadplus-31459efbd3e63433b11fbf1005b3aa116d9bc3c1.tar.gz
plus-31459efbd3e63433b11fbf1005b3aa116d9bc3c1.tar.bz2
plus-31459efbd3e63433b11fbf1005b3aa116d9bc3c1.tar.xz
plus-31459efbd3e63433b11fbf1005b3aa116d9bc3c1.zip
Redirect logging to file after log file opened.s20170918
If log file open failed, redirect logging back to stdout.
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/dyecmd/client.cpp2
-rw-r--r--src/progs/dyecmd/dyemain.cpp1
-rw-r--r--src/progs/manaplus/client.cpp2
3 files changed, 0 insertions, 5 deletions
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]);
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 4cf9923ee..be5c7ca81 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -346,8 +346,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());