Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pisua committed Dec 16, 2024
1 parent ecd2422 commit e736916
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/kapla/core/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ def configure_logger(level: Optional[int] = None) -> None:
"""
# Check that the logging level exists
# Optionally fetch logging level from environment variable
level_: int
if level is not None:
level_: int = level
level_ = level
else:
level_str = os.environ.get("LOGGING_LEVEL", NOTSET)
level_: int = logging.getLevelName(level_str)
level_ = logging.getLevelName(level_str)
if not isinstance(level, int):
raise ValueError(f"Logging level not supported: {level_}")
structlog.configure(
Expand Down

0 comments on commit e736916

Please sign in to comment.