Skip to content

Commit b5a9f8c

Browse files
committed
convert ROBOT_CALL_TRACING_LEVEL correctly
1 parent 74dbad0 commit b5a9f8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

robotcode/utils/logging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ def __repr__(self) -> str:
303303
"ROBOT_CALL_TRACING_ENABLED" in os.environ and os.environ["ROBOT_CALL_TRACING_ENABLED"] != "0"
304304
)
305305
_call_tracing_default_level = (
306-
os.environ["ROBOT_CALL_TRACING_LEVEL"] if "ROBOT_CALL_TRACING_LEVEL" in os.environ else TRACE
306+
logging.getLevelName(os.environ["ROBOT_CALL_TRACING_LEVEL"])
307+
if "ROBOT_CALL_TRACING_LEVEL" in os.environ
308+
else TRACE
307309
)
308310

309311
@classmethod

0 commit comments

Comments
 (0)