We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loglevel_map
1 parent c1341be commit 4458115Copy full SHA for 4458115
pytest_reportportal/service.py
@@ -30,12 +30,12 @@ def __init__(self):
30
31
# Map loglevel codes from `logging` module to ReportPortal text names:
32
self.loglevel_map = {
33
- 0: "TRACE", # logging.NOTSET -> 'TRACE'
34
- 10: "DEBUG",
35
- 20: "INFO",
36
- 30: "WARN",
37
- 40: "ERROR",
38
- 50: "ERROR", # logging.CRITICAL -> 'TRACE'
+ logging.NOTSET: "TRACE",
+ logging.DEBUG: "DEBUG",
+ logging.INFO: "INFO",
+ logging.WARNING: "WARN",
+ logging.ERROR: "ERROR",
+ logging.CRITICAL: "ERROR",
39
}
40
41
def init_service(self, endpoint, project, uuid):
0 commit comments