-
Notifications
You must be signed in to change notification settings - Fork 178
Reduce amount of log junk emitted #1286
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some logs I would leave level on INFO, most adjustments look good to me.
@@ -54,7 +54,7 @@ public void execute() throws MojoExecutionException { | |||
|
|||
checkResult(result); | |||
|
|||
getLog().info("" + result.getAddedFiles().size() + " files successfully added."); | |||
getLog().debug("" + result.getAddedFiles().size() + " files successfully added."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This I would rather leave with info as this is an important hint as often usage of wildcards leads to unexpected files being added. I think one info per goal is not overly verbose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
@@ -61,7 +61,7 @@ public CheckLocalModificationsMojo(ScmManager manager, SettingsDecrypter setting | |||
|
|||
public void execute() throws MojoExecutionException { | |||
if (skip) { | |||
getLog().info("check-local-modification execution has been skipped"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think skipping a mojo emits an INFO log also with other mojos, like https://github.com/apache/maven-surefire/blob/98d081e671888831ab16c66f4e02fc7e73802d2f/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java#L939. I would rather leave on info level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
|
||
if (project.getProperties() != null) // Remove the test when we'll use plugin-test-harness 1.0-alpha-2 | ||
{ | ||
project.getProperties().put(revisionKey, revision); | ||
} | ||
|
||
getLog().info("Project at revision " + revision); | ||
getLog().debug("Project at revision " + revision); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is important to leave on INFO for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
Changes a lot of info logs statements to debug