We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65bf741 commit ac446d7Copy full SHA for ac446d7
src/objects/conf/base.py
@@ -233,6 +233,8 @@
233
FIXTURE_DIRS = (os.path.join(DJANGO_PROJECT_DIR, "fixtures"),)
234
235
LOGGING_DIR = os.path.join(BASE_DIR, "log")
236
+LOG_REQUESTS = config("LOG_REQUESTS", default=False)
237
+LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=True)
238
239
LOGGING = {
240
"version": 1,
@@ -321,7 +323,8 @@
321
323
"level": "DEBUG",
322
324
},
325
"log_outgoing_requests": {
- "handlers": ["log_outgoing_requests", "save_outgoing_requests"],
326
+ "handlers": ["log_outgoing_requests", "save_outgoing_requests"] if LOG_REQUESTS
327
+ else [],
328
329
"propagate": True,
330
0 commit comments