Skip to content

Commit 9a4b431

Browse files
committed
fix dict printing error
1 parent 4f185f7 commit 9a4b431

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

production.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
import re
66
import sys
7+
from dataclasses import asdict
78

89
from gunicorn.app.base import BaseApplication
910

@@ -91,7 +92,7 @@ def load(self):
9192
logger.debug(
9293
"Starting gunicorn app '{}' for production environment with options: {}".format(
9394
config.gunicorn.app_name,
94-
json.dumps(config, indent=2),
95+
json.dumps(asdict(config), indent=2),
9596
)
9697
)
9798
sys.stdout = StreamToLoggerFromGunicornProcess()

0 commit comments

Comments
 (0)