Skip to content

Commit

Permalink
Don't print PIL debug logs in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Mar 9, 2024
1 parent ed19321 commit 52f7abc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hexdoc/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def setup_logging(
handler.addFilter(RegexFilter(f"^No translation in {lang}"))

root_logger.addHandler(handler)

logging.getLogger("PIL").setLevel(logging.INFO)

logger.debug("Initialized logger.")


Expand Down

0 comments on commit 52f7abc

Please sign in to comment.