Keep old client logs

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

View file

@ -335,6 +335,7 @@ int main(int argc, char**argv)
std::cerr.rdbuf (&sb);
#else
// Redirect cout and cerr to openmw.log
Log::copyOldLog(cfgMgr.getLogPath(), "openmw", "log");
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/openmw.log"));
coutsb.open (Tee(logfile, oldcout));