From: W. Trevor King Date: Tue, 13 Nov 2012 17:34:55 +0000 (-0500) Subject: main: fix logging imports X-Git-Tag: v3.0~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=25302e2dd56d0b4daaa48aed2105e221dba08cda;p=rss2email.git main: fix logging imports This should have happened in: commit 066602efa088b4a89d67e23011613b4459db3c92 Author: W. Trevor King Date: Tue Nov 13 09:09:00 2012 -0500 rss2email: split massive package into modules --- diff --git a/rss2email/main.py b/rss2email/main.py index 3d59702..5609b51 100644 --- a/rss2email/main.py +++ b/rss2email/main.py @@ -2,10 +2,12 @@ """ import argparse as _argparse +import logging as _logging import sys as _sys from . import __doc__ as _PACKAGE_DOCSTRING from . import __version__ +from . import LOG as _LOG from . import command as _command from . import error as _error from . import feeds as _feeds @@ -116,7 +118,7 @@ def run(*args, **kwargs): args = parser.parse_args(*args, **kwargs) if args.verbose: - LOG.setLevel(max(_logging.DEBUG, _logging.ERROR - 10 * args.verbose)) + _LOG.setLevel(max(_logging.DEBUG, _logging.ERROR - 10 * args.verbose)) try: if not args.config: