Skip to content

Commit

Permalink
do not propagate to root logger from report.logger (#1087)
Browse files Browse the repository at this point in the history
* do not propagate to root logger from report.logger
---------

Co-authored-by: Krisztian Notaisz <kn-ms@users.noreply.github.com>
  • Loading branch information
kn-ms and kn-ms committed May 24, 2024
1 parent fe16fa4 commit 89e23dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not propagate logs, meant to the report, to the root logger, as that is polluting the log. These logs are visible with ``-v`` or ``-d``.
1 change: 1 addition & 0 deletions testplan/common/report/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def emit(self, record):


LOGGER.addHandler(ReportLogHandler())
LOGGER.propagate = False


def create_logging_adapter(report):
Expand Down

0 comments on commit 89e23dc

Please sign in to comment.