1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Keep old server logs

This commit is contained in:
Koncord 2016-12-18 12:44:08 +08:00
parent f7b4aea85b
commit f08ab0b161

View file

@ -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));