mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Keep old client logs
This commit is contained in:
parent
f08ab0b161
commit
e44ebca0aa
@ -335,6 +335,7 @@ int main(int argc, char**argv)
|
|||||||
std::cerr.rdbuf (&sb);
|
std::cerr.rdbuf (&sb);
|
||||||
#else
|
#else
|
||||||
// Redirect cout and cerr to openmw.log
|
// Redirect cout and cerr to openmw.log
|
||||||
|
Log::copyOldLog(cfgMgr.getLogPath(), "openmw", "log");
|
||||||
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/openmw.log"));
|
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/openmw.log"));
|
||||||
|
|
||||||
coutsb.open (Tee(logfile, oldcout));
|
coutsb.open (Tee(logfile, oldcout));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user