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/bindinstance.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipaserver/install/bindinstance.py') diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index 7330264fe..7da4a891b 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -20,7 +20,6 @@ import tempfile import os import pwd -import logging import netaddr import installutils @@ -34,6 +33,7 @@ from ipapython import ipautil from ipalib.constants import DNS_ZONE_REFRESH from ipalib.parameters import IA5Str from ipalib.util import validate_zonemgr +from ipapython.ipa_log_manager import * import ipalib from ipalib import api, util, errors @@ -482,9 +482,9 @@ class BindInstance(service.Service): def __setup_zone(self): if self.host_domain != self.domain: # add DNS domain for host first - logging.debug("Host domain (%s) is different from DNS domain (%s)!" \ + root_logger.debug("Host domain (%s) is different from DNS domain (%s)!" \ % (self.host_domain, self.domain)) - logging.debug("Add DNS zone for host first.") + root_logger.debug("Add DNS zone for host first.") add_zone(self.host_domain, self.zonemgr, dns_backup=self.dns_backup, ns_hostname=api.env.host, ns_ip_address=self.ip_address) @@ -557,7 +557,7 @@ class BindInstance(service.Service): except ldap.TYPE_OR_VALUE_EXISTS: pass except Exception, e: - logging.critical("Could not modify principal's %s entry" % dns_principal) + root_logger.critical("Could not modify principal's %s entry" % dns_principal) raise e def __setup_named_conf(self): @@ -639,7 +639,7 @@ class BindInstance(service.Service): try: self.fstore.restore_file(f) except ValueError, error: - logging.debug(error) + root_logger.debug(error) pass if not enabled is None and not enabled: -- cgit