1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Merge pull request #9236 from ZehMatt/fix-ga-logging

Improve game action logging
This commit is contained in:
ζeh Matt
2019-05-15 22:44:47 +02:00
committed by GitHub

View File

@@ -1349,7 +1349,7 @@ void Network::AppendLog(std::ostream& fs, const std::string& s)
}
try
{
utf8 buffer[256];
utf8 buffer[1024];
time_t timer;
time(&timer);
auto tmInfo = localtime(&timer);
@@ -1401,9 +1401,9 @@ void Network::BeginServerLog()
# if defined(_WIN32) && !defined(__MINGW32__)
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
_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
// Log server start event