Skip to content

Commit 817bfab

Browse files
committed
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`
1 parent 15a79b8 commit 817bfab

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

etc/leapp/logger.conf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[loggers]
2-
keys=urllib3,root
2+
keys=urllib3,root,leapp
33

44
[formatters]
55
keys=leapp
@@ -18,8 +18,13 @@ qualname=urllib3
1818
handlers=stream
1919

2020
[logger_root]
21-
level=DEBUG
21+
level=NOTSET
22+
handlers=stream
23+
24+
[logger_leapp]
25+
level=NOTSET
2226
handlers=leapp_audit,stream
27+
qualname=compiler.parser
2328

2429
[handler_leapp_audit]
2530
class=leapp.logger.LeappAuditHandler

leapp/snactor/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def last_snactor_context(connection=None):
1010
Retrieves the last snactor-run context from the database. It generates a new one if none has been found.
1111
1212
:param connection: Database connection to use instead of the default connection.
13-
:returns: String representing the latest snactor-run context uuid.
13+
:return: String representing the latest snactor-run context uuid.
1414
"""
1515
with get_connection(db=connection) as db:
1616
cursor = db.execute('''

0 commit comments

Comments
 (0)