Skip to content

Commit

Permalink
chore: use existing log level to control handlers verbosity (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed May 14, 2024
1 parent 84cfff9 commit 0094a30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ def __get_base_dir() -> str:
},
"handlers": {
"console": {
"level": "INFO",
"level": config("GUNICORN_LOG_LEVEL", cast=str),
"filters": ["require_debug_true"],
"class": "logging.StreamHandler",
"formatter": "standard",
},
"logtail": {
"level": "INFO",
"level": config("GUNICORN_LOG_LEVEL", cast=str),
"filters": ["require_debug_false"],
"class": "logtail.LogtailHandler",
"formatter": "simple",
Expand Down

0 comments on commit 0094a30

Please sign in to comment.