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

WebApplicationExceptionMapper treats redirection as informational #2316

Merged
merged 2 commits into from
Mar 29, 2022

Conversation

schlosna
Copy link
Contributor

Before this PR

RedirectionExceptions were being logged at ERROR, especially HTTP 304 Not Modified

After this PR

==COMMIT_MSG==
WebApplicationExceptionMapper treats redirection as informational
==COMMIT_MSG==

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Mar 29, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

WebApplicationExceptionMapper treats redirection as informational

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from jkozlowski March 29, 2022 14:52
log.error("Error handling request", SafeArg.of("errorInstanceId", errorInstanceId), exception);
} else {
log.info("Error handling request", SafeArg.of("errorInstanceId", errorInstanceId), exception);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't change the behavior on the info logging here, but a case could be made we probably don't need the exception for non-5xx responses

@bulldozer-bot bulldozer-bot bot merged commit b4d4628 into develop Mar 29, 2022
@bulldozer-bot bulldozer-bot bot deleted the ds/jersey-mapper branch March 29, 2022 15:01
@svc-autorelease
Copy link
Collaborator

Released 7.31.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants