diff options
Diffstat (limited to 'crocoite/logger.py')
-rw-r--r-- | crocoite/logger.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crocoite/logger.py b/crocoite/logger.py index 7f4a4de..d882eaf 100644 --- a/crocoite/logger.py +++ b/crocoite/logger.py @@ -43,9 +43,9 @@ class Level(IntEnum): ERROR = 3 class Logger: - def __init__ (self, consumer=[], bindings={}): - self.bindings = bindings - self.consumer = consumer + def __init__ (self, consumer=None, bindings=None): + self.bindings = bindings or {} + self.consumer = consumer or [] def __call__ (self, level, *args, **kwargs): if not isinstance (level, Level): |