Skip to content

Commit

Permalink
Merge pull request #237 from famod/threshold-info-log
Browse files Browse the repository at this point in the history
CheckMojo: reduce log to info when bug below threshold
  • Loading branch information
hazendaz authored Jul 8, 2020
2 parents 2e71189 + 973fb04 commit 5847f48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/it/check-failThreshold/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

File buildLog = new File( basedir, 'build.log' )
assert buildLog.text.contains( '[WARNING] Medium: Unused public or protected field:' )
assert buildLog.text.contains( '[INFO] Medium: Unused public or protected field:' )
assert buildLog.text.contains( '[ERROR] High: Found reliance on default encoding in UserMistakes' )
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ class SpotbugsViolationCheckMojo extends AbstractMojo {
bugCountAboveThreshold += 1
log.error(logMsg)
} else {
log.warn(logMsg)
log.info(logMsg)
}
}

Expand Down

0 comments on commit 5847f48

Please sign in to comment.