mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
logging: do not log into the root logger
Deprecate `ipa_log_manager.root_logger` and replace all calls to it with module-level logger calls. Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
ab9d1e75fc
commit
7a482b7c72
@@ -26,7 +26,6 @@ import six
|
||||
|
||||
from ipapython.version import API_VERSION
|
||||
from ipapython.ipautil import APIVersion
|
||||
from ipapython.ipa_log_manager import root_logger
|
||||
from ipalib.base import NameSpace
|
||||
from ipalib.plugable import Plugin, APINameSpace
|
||||
from ipalib.parameters import create_param, Param, Str, Flag
|
||||
@@ -1007,7 +1006,7 @@ class Command(HasParam):
|
||||
if self.msg_summary:
|
||||
return self.msg_summary % output
|
||||
|
||||
def log_messages(self, output, logger):
|
||||
def log_messages(self, output):
|
||||
logger_functions = dict(
|
||||
debug=logger.debug,
|
||||
info=logger.info,
|
||||
@@ -1040,7 +1039,7 @@ class Command(HasParam):
|
||||
|
||||
rv = 0
|
||||
|
||||
self.log_messages(output, root_logger)
|
||||
self.log_messages(output)
|
||||
|
||||
order = [p.name for p in self.output_params()]
|
||||
if options.get('all', False):
|
||||
|
||||
Reference in New Issue
Block a user