Skip to content

Commit

Permalink
closes #2: queited sh log output
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kaufman committed Jan 7, 2015
1 parent 5582554 commit 9e8cc4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fencepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ def _get_args():
h = l.StreamHandler()
h.setFormatter(f)
l.getLogger('').addHandler(h)
l.getLogger('').setLevel(l.DEBUG if args['verbose'] else l.INFO)

if args['verbose']:
l.getLogger('').setLevel(l.DEBUG)
else:
l.getLogger('').setLevel(l.INFO)
l.getLogger('sh').setLevel(l.ERROR)

# we need to do some work to get the root directory we care about here
if not args['dir']:
Expand Down

0 comments on commit 9e8cc4f

Please sign in to comment.