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:
Itamar 2021-06-26 14:36:10 +03:00 committed by Ali Mohammad Pur
parent c1ee0c1685
commit 87e6d5351e
Notes: sideshowbarker 2024-07-18 11:23:34 +09:00

View file

@ -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: