Allow debug level to be set.

This commit is contained in:
Bastian Kleineidam 2013-02-07 18:28:40 +01:00
parent 68d58640e8
commit e16b86d768

View file

@ -23,9 +23,9 @@ class Output(object):
"""Write an informational message.""" """Write an informational message."""
self.write(s, level=level) self.write(s, level=level)
def debug(self, s): def debug(self, s, level=2):
"""Write a debug message.""" """Write a debug message."""
self.write(s, level=2, color='white') self.write(s, level=level, color='white')
def warn(self, s): def warn(self, s):
"""Write a warning message.""" """Write a warning message."""