Skip to content

Commit

Permalink
Add manifester logging configuration to robottelo
Browse files Browse the repository at this point in the history
This PR adds Manifester to the list of third-party loggers in Robottelo
and enables setting debug-level Manifester logging.
  • Loading branch information
synkd authored and mshriver committed Sep 7, 2022
1 parent bc3e576 commit e417606
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ robozilla:
broker:
level: WARNING
fileLevel: DEBUG
manifester:
level: INFO
fileLevel: DEBUG
other:
fileLevel: INFO
3 changes: 3 additions & 0 deletions robottelo/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import yaml
from box import Box
from broker.logger import setup_logzero as broker_log_setup
from manifester.logger import setup_logzero as manifester_log_setup


robottelo_root_dir = Path(os.environ.get('ROBOTTELO_DIR', Path(__file__).resolve().parent.parent))
Expand Down Expand Up @@ -42,6 +43,7 @@ def configure_third_party_logging():
'awxkit',
'broker',
'easyprocess',
'manifester',
'nailgun',
'requests.packages.urllib3.connectionpool',
'robozilla',
Expand All @@ -57,6 +59,7 @@ def configure_third_party_logging():

configure_third_party_logging()
broker_log_setup(logging_yaml.robottelo.fileLevel, str(robottelo_log_file))
manifester_log_setup(logging_yaml.robottelo.fileLevel, str(robottelo_log_file))


collection_logger = logzero.setup_logger(
Expand Down

0 comments on commit e417606

Please sign in to comment.