logging: use the actual root logger as the root logger

Use the actual root logger (`logging.getLogger()`) rather than the `ipa`
logger (or the `root` logger in case of ipa-ods-exporter) as the root
logger.

Always configure logging on the root logger.

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Jan Cholasta
2016-09-14 22:13:34 +02:00
committed by Martin Basti
parent f62a0fdb90
commit 9d19654cbd
4 changed files with 12 additions and 23 deletions

View File

@@ -507,7 +507,7 @@ class IpaAdvise(admintool.AdminTool):
advise_api.finalize()
if not self.options.verbose:
# Do not print connection information by default
logger_name = r'ipa\.ipalib\.plugins\.rpcclient'
logger_name = r'ipalib\.plugins\.rpcclient'
root_logger.addFilter(Filter(logger_name, logging.WARNING))
# With no argument, print the list out and exit