mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #9236 from ZehMatt/fix-ga-logging
Improve game action logging
This commit is contained in:
commit
1978372679
|
@ -1349,7 +1349,7 @@ void Network::AppendLog(std::ostream& fs, const std::string& s)
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
utf8 buffer[256];
|
utf8 buffer[1024];
|
||||||
time_t timer;
|
time_t timer;
|
||||||
time(&timer);
|
time(&timer);
|
||||||
auto tmInfo = localtime(&timer);
|
auto tmInfo = localtime(&timer);
|
||||||
|
@ -1401,9 +1401,9 @@ void Network::BeginServerLog()
|
||||||
|
|
||||||
# if defined(_WIN32) && !defined(__MINGW32__)
|
# if defined(_WIN32) && !defined(__MINGW32__)
|
||||||
auto pathW = std::unique_ptr<wchar_t>(utf8_to_widechar(_serverLogPath.c_str()));
|
auto pathW = std::unique_ptr<wchar_t>(utf8_to_widechar(_serverLogPath.c_str()));
|
||||||
_server_log_fs.open(pathW.get(), std::ios::out | std::ios::app);
|
_server_log_fs.open(pathW.get(), std::ios::out | std::ios::app | std::ios::binary);
|
||||||
# else
|
# else
|
||||||
_server_log_fs.open(_serverLogPath, std::ios::out | std::ios::app);
|
_server_log_fs.open(_serverLogPath, std::ios::out | std::ios::app | std::ios::binary);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
// Log server start event
|
// Log server start event
|
||||||
|
|
Loading…
Reference in New Issue