fix logging

This commit is contained in:
NOTPIES 2026-03-16 00:26:14 -03:00
parent 521fc55e87
commit 7c1c64c79c

View file

@ -259,7 +259,7 @@ void CMinecraftApp::DebugPrintf(const char *szFormat, ...)
time_t now = time(NULL);
struct tm t;
localtime_s(&t, &now);
printf("[%02d:%02d:%02d] [Server thread/INFO]: %s\n", t.tm_hour, t.tm_min, t.tm_sec, buf);
printf("%04d-%02d-%02d %02d:%02d:%02d [INFO] %s\n", t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec, buf);
fflush(stdout);
}
#endif