-
Notifications
You must be signed in to change notification settings - Fork 994
Additional logging to plugin registration process #8544
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
Additional logging to plugin registration process #8544
Conversation
Signed-off-by: garyschulte <[email protected]>
| if (config.isContinueOnPluginError()) { | ||
| LOG.error("Error matching or registering plugins. Plugins will not start.", e); | ||
| } else { | ||
| throw new RuntimeException("Error matching or registering plugins. Plugins will not start", e); |
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.
Error matching or registering plugins. Besu will not start
| } | ||
|
|
||
| private List<BesuPlugin> detectPlugins(final PluginConfiguration config) { | ||
| LOG.debug("detecting plugin in configured besu.plugins.dir {}", config.getPluginsDir()); |
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 wasn't able to get this to log with "DEBUG"
| final URL[] pluginJarURLs = | ||
| pluginFilesList | ||
| .filter(p -> p.getFileName().toString().endsWith(".jar")) | ||
| .peek(p -> LOG.debug("plugin jar url: {}", p)) |
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.
Same as above, DEBUG did not work but maybe it is my configuration
| // if block import tracer provider is not specified by plugin, default to no tracing | ||
| .orElse((__) -> BlockAwareOperationTracer.NO_TRACING); | ||
| .orElse((__) -> { | ||
| LOG.info("Block Import uses NO_TRACING"); |
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 will be logged every time that a block is processed. Maybe move the log outside of the lambda body or change it to trace
|
This pr is stale because it has been open for 30 days with no activity. |
|
This pr was closed because it has been inactive for 14 days since being marked as stale. |
PR description
Simple PR, aids in plugin registration debugging and discovery via logging
Fixed Issue(s)
Thanks for sending a pull request! Have you done the following?
doc-change-requiredlabel to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests