summaryrefslogtreecommitdiffstats
path: root/lib/bb/msg.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/msg.py')
-rw-r--r--lib/bb/msg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/msg.py b/lib/bb/msg.py
index ea6a9543f..c70fd8080 100644
--- a/lib/bb/msg.py
+++ b/lib/bb/msg.py
@@ -98,6 +98,9 @@ class BBLogFormatter(logging.Formatter):
def enable_color(self):
self.color_enabled = True
+ def __repr__(self):
+ return "%s fmt='%s' color=%s" % (self.__class__.__name__, self._fmt, "True" if self.color_enabled else "False")
+
class BBLogFilter(object):
def __init__(self, handler, level, debug_domains):
self.stdlevel = level