From 9e936ddedfe107e559294a60e9803d544ef42e97 Mon Sep 17 00:00:00 2001 From: Ricardo Lafuente Date: Wed, 20 Jan 2016 23:35:39 +0100 Subject: [PATCH] Fix incomplete method calls --- zenlog/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zenlog/__init__.py b/zenlog/__init__.py index ccfe3fc..ef2a7b7 100644 --- a/zenlog/__init__.py +++ b/zenlog/__init__.py @@ -59,7 +59,7 @@ def debug(self, message, *args, **kwargs): dbg = d = debug # other convenience functions to set the global logging level - def _parse_level(lvl): + def _parse_level(self, lvl): if lvl == logging.CRITICAL or lvl in ("critical", "crit", "c", "fatal"): return logging.CRITICAL elif lvl == logging.ERROR or lvl in ("error", "err", "e"): @@ -73,7 +73,7 @@ def _parse_level(lvl): else: raise TypeError("Unrecognized logging level: %s" % lvl) - def level(lvl=None): + def level(self, lvl=None): '''Get or set the logging level.''' if not lvl: return self._lvl