jenkinsci / violation-comments-to-stash-plugin

Comments Bitbucket Server (or Stash) pull requests with static code analyzer findings.
https://plugins.jenkins.io/violation-comments-to-stash
MIT License
43 stars 16 forks source link

Limit logging of files from Violations Lib #73

Open aakoch opened 3 years ago

aakoch commented 3 years ago

Is there a way to set the logging level so that the ViolationsApi class in violations-lib doesn't log the files it find? My project is large and 3112 of these log messages are a bit noisy.

Thanks.

tomasbjerre commented 3 years ago

No not configurable: https://github.com/jenkinsci/violation-comments-to-stash-plugin/blob/master/src/main/java/org/jenkinsci/plugins/jvctb/perform/JvctbPerformer.java#L87

aakoch commented 3 years ago

Ok. I didn't know if there was a way to set the level maybe.

Follow-up question: what's the reasoning the previous line checks for the FINE level? Why would that specific level be ignored?

tomasbjerre commented 3 years ago

Because it is the lowest level. Most users are mostly not interested in it.

aakoch commented 3 years ago

FINER and FINEST are lower

tomasbjerre commented 3 years ago

Do you see those levels being used anywhere? I have intentionally used FINE as lowest level.