Skip to content

Commit

Permalink
Merge pull request #1514 from open-zaak/feature/1506-log-requests-def…
Browse files Browse the repository at this point in the history
…ault

Feature/1506 log requests default
  • Loading branch information
annashamray committed Nov 23, 2023
2 parents 5d33cd9 + edb3879 commit 6d1599e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/installation/config/env_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ on Docker, since `localhost` is contained within the container:
* `LOG_LEVEL`: control the verbosity of logging output. Available values are `CRITICAL`,
`ERROR`, `WARNING`, `INFO` and `DEBUG`. Defaults to `WARNING`.

* `LOG_REQUESTS`: enable logging of the outgoing requests. Defaults to `False`.

* `PROFILE`: whether to enable profiling-tooling or not. Applies to the development
settings only. Defaults to `False`.

Expand Down
2 changes: 1 addition & 1 deletion src/openzaak/conf/includes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
LOG_STDOUT = config("LOG_STDOUT", default=False)
LOG_LEVEL = config("LOG_LEVEL", default="WARNING")
LOG_QUERIES = config("LOG_QUERIES", default=False)
LOG_REQUESTS = config("LOG_REQUESTS", default=True)
LOG_REQUESTS = config("LOG_REQUESTS", default=False)
if LOG_QUERIES and not DEBUG:
warnings.warn(
"Requested LOG_QUERIES=1 but DEBUG is false, no query logs will be emited.",
Expand Down

0 comments on commit 6d1599e

Please sign in to comment.