Skip to content

Conversation

AndriiAndreiev
Copy link
Collaborator

🚥 Resolves #58

🧰 Changes

Add a middleware checks for skipping OPTIONS requests

Copy link
Contributor

@gratcliff gratcliff left a comment

Choose a reason for hiding this comment

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

@AndriiAndreiev can we add unit and integration tests for these changes?

self.config.LOGGER.exception(e)

def after_request(self, response):
if request.method == "OPTIONS":
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to get here in the request lifecycle when it's an OPTIONS call?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gratcliff @erunion i've added some tests for this feature and made some minor changes

@AndriiAndreiev AndriiAndreiev changed the title feat(dotnet, node, php, python): exclude OPTIONS requests from being logger feat(dotnet, node, php, python): exclude OPTIONS requests from being logged Sep 2, 2024
@gratcliff gratcliff merged commit 642c293 into main Sep 3, 2024
45 checks passed
@gratcliff gratcliff deleted the feat/exclude-options-requests branch September 3, 2024 23:53
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.

Exclude OPTIONS requests from being logged

2 participants