From 25302e2dd56d0b4daaa48aed2105e221dba08cda Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 13 Nov 2012 12:34:55 -0500 Subject: [PATCH] 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 --- rss2email/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.26.2