Compare commits

...

1 Commits

Author SHA1 Message Date
lebaudantoine 6544c895dc 🔊(backend) update production logger
Configure probes logs as recommended by the Django dockerflow documentation.
Updating logger's config, fixed another minor issue, silenced system
warnings were still logged when calling the __lbheartbeat__ probe. These
warnings are now properly silenced.

Incoming requests are now logged in Json. Wdyt @rouja?
2024-08-29 18:22:46 +02:00
+20
View File
@@ -557,6 +557,26 @@ class Production(Base):
},
}
LOGGING = {
"version": 1,
"formatters": {
"json": {"()": "dockerflow.logging.JsonLogFormatter", "logger_name": "meet"}
},
"handlers": {
"console": {
"level": "DEBUG",
"class": "logging.StreamHandler",
"formatter": "json",
},
},
"loggers": {
"request.summary": {
"handlers": ["console"],
"level": "DEBUG",
},
},
}
class Feature(Production):
"""