Skip to content
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

Reduce verbosity of the default output #242

Open
vlsi opened this issue Nov 7, 2023 · 0 comments
Open

Reduce verbosity of the default output #242

vlsi opened this issue Nov 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@vlsi
Copy link

vlsi commented Nov 7, 2023

What problem are you trying to solve?

Regular build logs should indicate only important issues

Describe the solution you'd like

By default, rewriteRun should be silent in case it makes no modifications.

Currently rewrite-gradle-plugin produces

> Task :benchmarks:rewriteRun
Validating active recipes
Scanning sources in project :benchmarks
Using active styles [io.github.pgjdbc.style.Style, org.openrewrite.java.Checkstyle]
All sources parsed, running active recipes: org.openrewrite.java.OrderImports, org.openrewrite.staticanalysis.MissingOverrideAnnotation

> Task :pgjdbc-osgi-test:rewriteRun
Validating active recipes
Scanning sources in project :pgjdbc-osgi-test
Using active styles [io.github.pgjdbc.style.Style, org.openrewrite.java.Checkstyle]
All sources parsed, running active recipes: org.openrewrite.java.OrderImports, org.openrewrite.staticanalysis.MissingOverrideAnnotation

> Task :postgresql:rewriteRun
Validating active recipes
Scanning sources in project :postgresql
Using active styles [io.github.pgjdbc.style.Style, org.openrewrite.java.Checkstyle]

I believe the messages do not belong to lifecycle level. They should probably be moved to info, so they should be visible only in case the user provides --info.

Validating active, Scanning sources, and All sources parsed, running active recipes probably belong to debug level.

Have you considered any alternatives or workarounds?

Frankly speaking, no.

Additional context

I'm adding OpenRewrite to pgjdbc/pgjdbc.

Are you interested in contributing this feature to OpenRewrite?

Maybe.

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
Status: Backlog
Development

No branches or pull requests

1 participant