Skip to content

Commit

Permalink
🔨 Do not log requests in docs build/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Jun 8, 2023
1 parent 9c83def commit b06511f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import django

sys.path.insert(0, os.path.abspath("../src"))
os.environ["LOG_REQUESTS"] = "false"

import openforms # noqa isort:skip

Expand Down
5 changes: 4 additions & 1 deletion src/openforms/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
# LOGGING
#
LOG_STDOUT = config("LOG_STDOUT", default=False)
LOG_REQUESTS = config("LOG_REQUESTS", default=True)

LOGGING_DIR = os.path.join(BASE_DIR, "log")

Expand Down Expand Up @@ -460,7 +461,9 @@
"level": "DEBUG",
},
"requests": {
"handlers": ["log_outgoing_requests", "save_outgoing_requests"],
"handlers": ["log_outgoing_requests", "save_outgoing_requests"]
if LOG_REQUESTS
else [],
"level": "DEBUG",
"propagate": True,
},
Expand Down

0 comments on commit b06511f

Please sign in to comment.