Skip to content

Commit

Permalink
Fix incomplete method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rlafuente committed Jan 20, 2016
1 parent eca6b1c commit 9e936dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenlog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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
Expand Down

0 comments on commit 9e936dd

Please sign in to comment.