mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
AK: Don't colorize the 'extra' field of ScopeLogger in dbgln()
It's easier to spot it in the debug logs this way :)
This commit is contained in:
parent
c1ee0c1685
commit
87e6d5351e
Notes:
sideshowbarker
2024-07-18 11:23:34 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/87e6d5351e7 Pull-request: https://github.com/SerenityOS/serenity/pull/8260 Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
if (m_extra.is_empty())
|
||||
dbgln("\033[1;{}m{}entering {}\033[0m", m_depth % 8 + 30, sb.to_string(), m_location);
|
||||
else
|
||||
dbgln("\033[1;{}m{}entering {} ({})\033[0m", m_depth % 8 + 30, sb.to_string(), m_location, m_extra);
|
||||
dbgln("\033[1;{}m{}entering {}\033[0m ({})", m_depth % 8 + 30, sb.to_string(), m_location, m_extra);
|
||||
}
|
||||
|
||||
ScopeLogger(SourceLocation location = SourceLocation::current())
|
||||
|
@ -44,7 +44,7 @@ public:
|
|||
if (m_extra.is_empty())
|
||||
dbgln("\033[1;{}m{}leaving {}\033[0m", depth % 8 + 30, sb.to_string(), m_location);
|
||||
else
|
||||
dbgln("\033[1;{}m{}leaving {} ({})\033[0m", depth % 8 + 30, sb.to_string(), m_location, m_extra);
|
||||
dbgln("\033[1;{}m{}leaving {}\033[0m ({})", depth % 8 + 30, sb.to_string(), m_location, m_extra);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue