Skip to content

Commit

Permalink
Set logger to display errors when debug=False
Browse files Browse the repository at this point in the history
Longer term this should allow users to specify which loglevel they want, but for now this disables debug errors by setting a log level instead of no log level.

Fixes #79
  • Loading branch information
iamkubi committed Oct 15, 2023
1 parent ea09616 commit 56da73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydactyl/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def set_logger(debug):
if debug:
level = logging.DEBUG
else:
level = logging.NOTSET
level = logging.ERROR

logging.basicConfig()
logging.getLogger().setLevel(level)
Expand Down

0 comments on commit 56da73a

Please sign in to comment.