mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
logs.cpp: fix log format for backward compatibility
Don't add prefix for first messages.
This commit is contained in:
parent
7599c66639
commit
19107b2de5
1 changed files with 6 additions and 0 deletions
|
@ -611,6 +611,12 @@ void logs::file_listener::log(u64 stamp, const logs::message& msg, const std::st
|
|||
const u64 frac = (stamp % 1'000'000);
|
||||
fmt::append(text, "%u:%02u:%02u.%06u ", hours, mins, secs, frac);
|
||||
|
||||
if (msg.ch == nullptr && stamp == 0)
|
||||
{
|
||||
// Workaround for first special messages to keep backward compatibility
|
||||
text.clear();
|
||||
}
|
||||
|
||||
if (!prefix.empty())
|
||||
{
|
||||
text += "{";
|
||||
|
|
Loading…
Add table
Reference in a new issue