From 817bfabb5bfb957e5b71d2412b9fc3c515299eb7 Mon Sep 17 00:00:00 2001 From: Michal Bocek Date: Tue, 10 Mar 2020 21:05:06 +0100 Subject: [PATCH] Add missing leapp logger to logger.conf - framework is using the 'leapp' logger which was not being configured in the conf file - it caused certain commands to get stuck on RHEL 7 when leapp package (with the conf file) was installed, e.g. `snactor workflow sanity-check ipu` --- etc/leapp/logger.conf | 9 +++++++-- leapp/snactor/context.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/etc/leapp/logger.conf b/etc/leapp/logger.conf index ee1cf919d..287aa396c 100644 --- a/etc/leapp/logger.conf +++ b/etc/leapp/logger.conf @@ -1,5 +1,5 @@ [loggers] -keys=urllib3,root +keys=urllib3,root,leapp [formatters] keys=leapp @@ -18,8 +18,13 @@ qualname=urllib3 handlers=stream [logger_root] -level=DEBUG +level=NOTSET +handlers=stream + +[logger_leapp] +level=NOTSET handlers=leapp_audit,stream +qualname=compiler.parser [handler_leapp_audit] class=leapp.logger.LeappAuditHandler diff --git a/leapp/snactor/context.py b/leapp/snactor/context.py index d3ab66502..b3673b045 100644 --- a/leapp/snactor/context.py +++ b/leapp/snactor/context.py @@ -10,7 +10,7 @@ def last_snactor_context(connection=None): Retrieves the last snactor-run context from the database. It generates a new one if none has been found. :param connection: Database connection to use instead of the default connection. - :returns: String representing the latest snactor-run context uuid. + :return: String representing the latest snactor-run context uuid. """ with get_connection(db=connection) as db: cursor = db.execute('''