From f08ab0b1610549fe6437840b6eac96fec91bcebd Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 18 Dec 2016 12:44:08 +0800 Subject: [PATCH] Keep old server logs --- apps/openmw-mp/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 400c0c9c6..7ab6c1cbf 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -171,6 +171,8 @@ int main(int argc, char *argv[]) boost::filesystem::ofstream logfile; // Redirect cout and cerr to openmw.log + cout << Log::copyOldLog(cfgMgr.getLogPath(), "server", "log") << endl; + logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/server.log")); coutsb.open (Tee(logfile, oldcout));