Skip to content

Commit

Permalink
Update src/janus/utils/logs.py
Browse files Browse the repository at this point in the history
Co-authored-by: Stef Smeets <[email protected]>
  • Loading branch information
nichollsh and stefsmeets authored Aug 29, 2024
1 parent 11cce5c commit afc4175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/janus/utils/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def setup_logger(level:str="INFO"):

level = str(level).strip().upper()
if level not in ["INFO", "DEBUG", "ERROR", "WARNING"]:
raise Exception("Invalid log level '%s'"%level)
raise ValueError("Invalid log level '%s'"%level)
level_code = logging.getLevelName(level)

# Add terminal output to logger
Expand Down

0 comments on commit afc4175

Please sign in to comment.