Skip to content

Commit

Permalink
enh: Also raise error if log_level is above default (#7766)
Browse files Browse the repository at this point in the history
* enh: Also raise error if log_level is above default

* Apply suggestions from code review

---------

Co-authored-by: Philipp Rudiger <[email protected]>
  • Loading branch information
hoxbro and philippjfr authored Mar 7, 2025
1 parent 170f016 commit 5144606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/command/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def main(args: list[str] | None = None):
try:
ret = parsed_args.invoke(parsed_args)
except Exception as e:
if config.autoreload:
if config.autoreload or config.log_level in ("DEBUG", "INFO"):
raise e
die("ERROR: " + str(e))
else:
Expand Down

0 comments on commit 5144606

Please sign in to comment.