mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-12 11:09:26 +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);
|
const u64 frac = (stamp % 1'000'000);
|
||||||
fmt::append(text, "%u:%02u:%02u.%06u ", hours, mins, secs, frac);
|
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())
|
if (!prefix.empty())
|
||||||
{
|
{
|
||||||
text += "{";
|
text += "{";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue