From df47c06b0bfbe8a8c82d3a69bcd0aa22acb91d59 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sun, 31 Oct 2010 19:51:30 +0000 Subject: [PATCH] py-i2phosts-maint: use check_logger_options() --- py-i2phosts-maint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-i2phosts-maint b/py-i2phosts-maint index e9e9cdb..7836cae 100755 --- a/py-i2phosts-maint +++ b/py-i2phosts-maint @@ -57,14 +57,14 @@ sys.path.insert(1, DJANGO_PROJECT_PATH) os.environ['DJANGO_SETTINGS_MODULE'] = DJANGO_SETTINGS_MODULE from web.postkey.models import i2phost from web.lib.utils import get_logger +from web.lib.utils import check_logger_options # configure logger if args.debug == True: log_level = 'debug' log_file = None else: - log_level = config['log_level'] - log_file = config['log_file'] + log_file, log_level = check_logger_options(config) log = get_logger(filename=log_file, log_level=log_level) all_hosts = i2phost.objects.all()