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
commit 1978372679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

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