-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
➕ Add django-log-outgoing-requests #363
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Let's have a global var LOG_REQUESTS which switches off and on the logging. You can take a look at the config of open zaak or open forms
- Let's turn off saving to the DB by default:
LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=False)
ac446d7
to
b946845
Compare
src/objects/conf/base.py
Outdated
LOG_REQUESTS = config("LOG_REQUESTS", default=False) | ||
LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add new env vars to the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to docs/installation/config.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Could you just rebase and document new env vars?
Btw is it planned to add django-log-outgoing-requests to open-api-framework?
@annashamray there is an issue for it maykinmedia/open-api-framework#14 (and also for setup_configuration maykinmedia/open-api-framework#15) |
5e3134c
to
d02fe83
Compare
d02fe83
to
db6c915
Compare
Fixes #344
replacement for #345