Skip to content

Commit

Permalink
Remove urllib3 logger, set logger on httpcore
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Aug 14, 2024
1 parent f6874f4 commit 6f8fe0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zabbix_auto_config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ def main() -> None:
)
config = get_config()
logging.getLogger().setLevel(config.zac.log_level)
logging.getLogger("urllib3.connectionpool").setLevel(logging.ERROR)
logging.getLogger("httpcore.http11").setLevel(logging.ERROR)
logging.getLogger("httpcore").setLevel(logging.ERROR)
logging.getLogger("httpx").setLevel(logging.ERROR)

logging.info("Main start (%d) version %s", os.getpid(), __version__)
Expand Down

0 comments on commit 6f8fe0d

Please sign in to comment.