We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba3bb35 + 15cf1be commit 0c8b865Copy full SHA for 0c8b865
2 files changed
powerdns_api_proxy/logging.py
@@ -5,7 +5,7 @@
5
from sys import stderr
6
7
LOG_LEVEL = getenv("LOG_LEVEL") or "DEBUG"
8
-LOG_FORMAT = getenv("LOG_FORMAT", "text") # text or json
+LOG_FORMAT = getenv("LOG_FORMAT", "text").lower() # text or json
9
10
logging_format = (
11
"%(levelname)s - %(asctime)s - %(name)s - "
powerdns_api_proxy/uvicorn_config.py
@@ -1,6 +1,6 @@
1
import os
2
3
-LOG_FORMAT = os.getenv("LOG_FORMAT", "text")
+LOG_FORMAT = os.getenv("LOG_FORMAT", "text").lower()
4
if LOG_FORMAT == "json":
LOGGING_CONFIG = {
0 commit comments