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

Quieten output from native-image-plugin #5

Closed
wilkinsona opened this issue Jul 22, 2022 · 2 comments
Closed

Quieten output from native-image-plugin #5

wilkinsona opened this issue Jul 22, 2022 · 2 comments

Comments

@wilkinsona
Copy link
Member

Even when running a single smoke test, native-image-plugin outputs five lines per smoke test:

> Configure project :actuator-webflux
[native-image-plugin] Instrumenting task with the native-image-agent: bootRun
[native-image-plugin] Instrumenting task with the native-image-agent: generateAotSources
[native-image-plugin] Instrumenting task with the native-image-agent: jvmAotTest
[native-image-plugin] Instrumenting task with the native-image-agent: nativeAotTest
[native-image-plugin] Instrumenting task with the native-image-agent: test

> Configure project :actuator-webmvc
[native-image-plugin] Instrumenting task with the native-image-agent: bootRun
[native-image-plugin] Instrumenting task with the native-image-agent: generateAotSources
[native-image-plugin] Instrumenting task with the native-image-agent: jvmAotTest
[native-image-plugin] Instrumenting task with the native-image-agent: nativeAotTest
[native-image-plugin] Instrumenting task with the native-image-agent: test

> Configure project :aspect
[native-image-plugin] Instrumenting task with the native-image-agent: bootRun
[native-image-plugin] Instrumenting task with the native-image-agent: generateAotSources
[native-image-plugin] Instrumenting task with the native-image-agent: jvmAotTest
…

It would be nice to silence this output if we can.

@wilkinsona
Copy link
Member Author

This is due to some task creation that's happening at configuration time. If we defer that creation until execution time, the output is only produced for the smoke test that's being run.

@wilkinsona
Copy link
Member Author

I think we can go a step further. There's a predicate that we can configure to control which tasks are instrumented with the native image agent. I think we can safely turn it off completely.

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

No branches or pull requests

1 participant