From 56401c1abe7d4c78650acfcd9bbe8c8edc1dac57 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Tue, 15 Nov 2011 14:39:31 -0500 Subject: ticket 2022 - modify codebase to utilize IPALogManager, obsoletes logging change default_logger_level to debug in configure_standard_logging add new ipa_log_manager module, move log_mgr there, also export root_logger from log_mgr. change all log_manager imports to ipa_log_manager and change log_manager.root_logger to root_logger. add missing import for parse_log_level() --- ipaserver/install/upgradeinstance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipaserver/install/upgradeinstance.py') diff --git a/ipaserver/install/upgradeinstance.py b/ipaserver/install/upgradeinstance.py index 2f42358b7..72636497c 100644 --- a/ipaserver/install/upgradeinstance.py +++ b/ipaserver/install/upgradeinstance.py @@ -21,7 +21,7 @@ import os import sys import shutil import random -import logging +from ipapython.ipa_log_manager import * from ipaserver.install import installutils from ipaserver.install import dsinstance @@ -111,7 +111,7 @@ class IPAUpgrade(service.Service): # Bad things happened, return gracefully self.modified = False self.upgradefailed = True - logging.error('Upgrade failed with %s' % str(e)) + root_logger.error('Upgrade failed with %s' % str(e)) def main(): if os.getegid() != 0: -- cgit