1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 03:15:32 +00:00

[General] Disable OpenMW's log timestamps

Having timestamps from two different loggers isn't useful, so only the ones from TES3MP's logger are staying for now, especially as that logger is used by both the client and the server.
This commit is contained in:
David Cernat 2021-07-05 07:02:44 +02:00
parent 294f64d12d
commit 014e4ab01f

View file

@ -74,6 +74,12 @@ namespace Debug
if (level != NoLevel)
msg = msg.substr(1);
/*
Start of tes3mp change (major)
Don't use these timestamps, as TES3MP has its own
*/
/*
char prefix[32];
int prefixSize;
{
@ -86,6 +92,10 @@ namespace Debug
prefixSize += snprintf(prefix + prefixSize, sizeof(prefix) - prefixSize,
".%03u %c] ", static_cast<unsigned>(ms % 1000), levelLetter);
}
*/
/*
End of tes3mp change (major)
*/
while (!msg.empty())
{
@ -94,7 +104,15 @@ namespace Debug
size_t lineSize = 1;
while (lineSize < msg.size() && msg[lineSize - 1] != '\n')
lineSize++;
writeImpl(prefix, prefixSize, level);
/*
Start of tes3mp change (major)
Don't use these timestamps, as TES3MP has its own
*/
//writeImpl(prefix, prefixSize, level);
/*
End of tes3mp change (major)
*/
writeImpl(msg.data(), lineSize, level);
msg = msg.substr(lineSize);
}