Skip to content
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

Merged
merged 3 commits into from
Apr 23, 2024

Conversation

stevenbal
Copy link
Contributor

@stevenbal stevenbal commented Feb 23, 2024

Fixes #344
replacement for #345

Copy link
Collaborator

@annashamray annashamray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 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
  2. Let's turn off saving to the DB by default:
LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=False)

@Coperh Coperh force-pushed the feature/add-django-log-outgoing-requests branch 2 times, most recently from ac446d7 to b946845 Compare April 9, 2024 14:03
@Coperh Coperh requested a review from annashamray April 9, 2024 14:13
Comment on lines 236 to 237
LOG_REQUESTS = config("LOG_REQUESTS", default=False)
LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=True)
Copy link
Collaborator

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

Copy link
Contributor

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

@Coperh Coperh requested a review from annashamray April 19, 2024 09:49
Copy link
Collaborator

@annashamray annashamray left a 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?

@stevenbal
Copy link
Contributor Author

@annashamray there is an issue for it maykinmedia/open-api-framework#14 (and also for setup_configuration maykinmedia/open-api-framework#15)

@Coperh Coperh force-pushed the feature/add-django-log-outgoing-requests branch from 5e3134c to d02fe83 Compare April 23, 2024 07:43
@Coperh Coperh force-pushed the feature/add-django-log-outgoing-requests branch from d02fe83 to db6c915 Compare April 23, 2024 07:49
@Coperh Coperh requested a review from annashamray April 23, 2024 12:28
@Coperh Coperh merged commit 6fe150c into master Apr 23, 2024
8 checks passed
@Coperh Coperh deleted the feature/add-django-log-outgoing-requests branch April 23, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add log-outgoing-requests to Objects API
3 participants