Keep old server logs

coverity_scan^2
Koncord 8 years ago
parent f7b4aea85b
commit f08ab0b161

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

Loading…
Cancel
Save