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

[MINOR] move Pipeline stack trace to trace/debug level #6222

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

macfarla
Copy link
Contributor

@macfarla macfarla commented Dec 1, 2023

log a message only at info
log stack trace at debug/trace depending on type of exception

fixes #5533

@macfarla macfarla marked this pull request as ready for review December 1, 2023 03:30
Copy link

github-actions bot commented Dec 1, 2023

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

@macfarla macfarla enabled auto-merge (squash) December 1, 2023 03:44
@macfarla macfarla changed the title move Pipeline stack trace to trace/debug level [MINOR] move Pipeline stack trace to trace/debug level Dec 1, 2023
Copy link
Contributor

@jframe jframe left a comment

Choose a reason for hiding this comment

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

LGTM

} else {
LOG.info("Unexpected exception in pipeline. Aborting.", t);
LOG.info("Unexpected exception in pipeline. Aborting.");
LOG.debug("Unexpected exception in pipeline. Aborting.", t);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: little annoying most of the log message except for the throwable will be logged twice once at info and also at trace level. But it's only a short message and at trace, you expect a lot of noise so it's probably fine.

@macfarla macfarla merged commit 3ec078a into hyperledger:main Dec 1, 2023
9 checks passed
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
@macfarla macfarla deleted the log-pipeline-ex branch December 6, 2023 02:26
gfukushima pushed a commit to gfukushima/besu that referenced this pull request Dec 15, 2023
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
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.

Logging - catch this exception
2 participants