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:
parent
294f64d12d
commit
014e4ab01f
1 changed files with 19 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue