Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Reduce amount of log junk emitted #1286

wants to merge 4 commits into from

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Aug 6, 2025

Changes a lot of info logs statements to debug

@elharo elharo marked this pull request as ready for review August 6, 2025 20:44
@elharo elharo changed the title Reduce amount of log junk we emit Reduce amount of log junk emitted Aug 6, 2025
@elharo elharo added the enhancement New feature or request label Aug 7, 2025
@elharo elharo requested a review from kwin August 11, 2025 11:10
Copy link
Member

@kwin kwin left a 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.");
Copy link
Member

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.

Copy link
Contributor Author

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");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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);
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants