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

Prevent informational JMH messages for default Gradle log level #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snazy
Copy link
Contributor

@snazy snazy commented May 1, 2024

Currently every JMH bytecode generation task run produces log messages like the following even if just the default "lifecycle" log level is being used.

> Task :jmhRunBytecodeGenerator
Processing 0 classes from .../build/classes/java/jmh with "reflection" generator
Writing out Java source to .../build/jmh-generated-sources and resources to .../build/jmh-generated-resources
Processing 0 classes from .../build/classes/java/test with "reflection" generator
Writing out Java source to .../build/jmh-generated-sources and resources to .../build/jmh-generated-resources

This change prevents these log messages unless Gradle's "info" (or finer grained) log level is being used.

Currently every JMH bytecode generation task run produces log messages like the following even if just the default "lifecycle" log level is being used.

```
> Task :jmhRunBytecodeGenerator
Processing 0 classes from .../build/classes/java/jmh with "reflection" generator
Writing out Java source to .../build/jmh-generated-sources and resources to .../build/jmh-generated-resources
Processing 0 classes from .../build/classes/java/test with "reflection" generator
Writing out Java source to .../build/jmh-generated-sources and resources to .../build/jmh-generated-resources
```

This change prevents these log messages unless Gradle's "info" (or finer grained) log level is being used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant