Skip to content

Commit 15cf1be

Browse files
committed
fix: compare LOG_FORMAT as lowercase
1 parent ba3bb35 commit 15cf1be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

powerdns_api_proxy/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from sys import stderr
66

77
LOG_LEVEL = getenv("LOG_LEVEL") or "DEBUG"
8-
LOG_FORMAT = getenv("LOG_FORMAT", "text") # text or json
8+
LOG_FORMAT = getenv("LOG_FORMAT", "text").lower() # text or json
99

1010
logging_format = (
1111
"%(levelname)s - %(asctime)s - %(name)s - "

powerdns_api_proxy/uvicorn_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
LOG_FORMAT = os.getenv("LOG_FORMAT", "text")
3+
LOG_FORMAT = os.getenv("LOG_FORMAT", "text").lower()
44

55
if LOG_FORMAT == "json":
66
LOGGING_CONFIG = {

0 commit comments

Comments
 (0)