Skip to content

Commit

Permalink
set logger basicConfig debug if debug logging configured
Browse files Browse the repository at this point in the history
  • Loading branch information
haatveit committed Feb 14, 2025
1 parent cc1c711 commit 82f05b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tsdfileapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def set_config() -> None:
options.logging = _config.get("log_level", "info")
define("tenant_storage_cache", {})
define("sns_migrations", _config.get("sns_migrations", []))
if _config.get("log_level", "").lower() == "debug":
logger.basicConfig(level=logging.DEBUG)


set_config()
Expand Down

0 comments on commit 82f05b0

Please sign in to comment.