Skip to content

Commit

Permalink
Promote safe logging checks from SUGGESTION -> WARNING (#704)
Browse files Browse the repository at this point in the history
* Change safe logging checks severity to WARNING

* Changelog
  • Loading branch information
pkoenig10 authored and iamdanfox committed Jul 22, 2019
1 parent bab9acc commit e741062
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
name = "PreferSafeLoggableExceptions",
link = "https://github.com/palantir/gradle-baseline#baseline-error-prone-checks",
linkType = BugPattern.LinkType.CUSTOM,
severity = BugPattern.SeverityLevel.SUGGESTION,
severity = BugPattern.SeverityLevel.WARNING,
summary = "Throw SafeLoggable exceptions to ensure the exception message will not be redacted")
public final class PreferSafeLoggableExceptions extends BugChecker implements BugChecker.NewClassTreeMatcher {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
name = "PreferSafeLoggingPreconditions",
link = "https://github.com/palantir/gradle-baseline#baseline-error-prone-checks",
linkType = BugPattern.LinkType.CUSTOM,
severity = BugPattern.SeverityLevel.SUGGESTION,
severity = BugPattern.SeverityLevel.WARNING,
summary = "Precondition and similar checks with a constant message and no parameters should use equivalent "
+ "checks from com.palantir.logsafe.Preconditions for standardization as functionality is the same.")
public final class PreferSafeLoggingPreconditions extends BugChecker implements BugChecker.MethodInvocationTreeMatcher {
Expand Down
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-697.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: The severity of PreferSafeLoggableExceptions and PreferSafeLoggingPreconditions is now WARNING.
links:
- https://github.com/palantir/gradle-baseline/pull/704

0 comments on commit e741062

Please sign in to comment.