Conversation
…ning level LogReport now skips csp-violation reports by default (since LogCspViolation already handles them) and logs at warning level instead of info. BREAKING CHANGE: LogReport no longer logs CSP violations by default, and log level changed from info to warning. Override shouldExclude() returning false to restore the previous CSP logging behavior. Closes #11 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2 tasks
audunru
pushed a commit
that referenced
this pull request
May 3, 2026
# [2.0.0](v1.2.2...v2.0.0) (2026-05-03) ### Features * exclude CSP violations from LogReport by default and log at warning level ([#12](#12)) ([680e885](680e885)), closes [#11](#11) ### BREAKING CHANGES * LogReport no longer logs CSP violations by default, and log level changed from info to warning. Override shouldExclude() returning false to restore the previous CSP logging behavior.
Owner
Author
|
🎉 This PR is included in version 2.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LogReportnow skipscsp-violationreports by default —LogCspViolationalready handles those with a more targeted log message, so registering both no longer causes double-logginginfotowarningLogReportand overrideshouldExclude()to returnfalseBreaking changes
LogReportno longer logs CSP violations by defaultinfotowarningTest plan
test_logs_info_for_any_reportupdated to assertwarningleveltest_skips_csp_violations_by_defaultconfirms CSP events are skippedCloses #11
🤖 Generated with Claude Code