Skip to content

Commit

Permalink
AK: Don't colorize the 'extra' field of ScopeLogger in dbgln()
Browse files Browse the repository at this point in the history
It's easier to spot it in the debug logs this way :)
  • Loading branch information
itamar8910 authored and alimpfard committed Jun 28, 2021
1 parent c1ee0c1 commit 87e6d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AK/ScopeLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ScopeLogger {
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())
Expand All @@ -44,7 +44,7 @@ class ScopeLogger {
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:
Expand Down

0 comments on commit 87e6d53

Please sign in to comment.