Skip to content

Commit

Permalink
Add missing leapp logger to logger.conf
Browse files Browse the repository at this point in the history
- 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`
  • Loading branch information
bocekm committed Mar 10, 2020
1 parent 15a79b8 commit 817bfab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions etc/leapp/logger.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[loggers]
keys=urllib3,root
keys=urllib3,root,leapp

[formatters]
keys=leapp
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion leapp/snactor/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('''
Expand Down

0 comments on commit 817bfab

Please sign in to comment.