mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 17:06:43 +00:00
Keep old server logs
This commit is contained in:
parent
f7b4aea85b
commit
f08ab0b161
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ int main(int argc, char *argv[])
|
||||||
boost::filesystem::ofstream logfile;
|
boost::filesystem::ofstream logfile;
|
||||||
|
|
||||||
// Redirect cout and cerr to openmw.log
|
// Redirect cout and cerr to openmw.log
|
||||||
|
cout << Log::copyOldLog(cfgMgr.getLogPath(), "server", "log") << endl;
|
||||||
|
|
||||||
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/server.log"));
|
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/server.log"));
|
||||||
|
|
||||||
coutsb.open (Tee(logfile, oldcout));
|
coutsb.open (Tee(logfile, oldcout));
|
||||||
|
|
Loading…
Reference in a new issue