| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR fixes a logging-formatting issue in EventSourceManager where a SLF4J warning message had one placeholder too many, causing the rendered log line to include a literal {} when stopping an event source fails.
Changes:
Sorry, something went wrong.
`log.warn("Error closing {} -> {}", eventSource.name(), e)` supplies two
placeholders but only one non-throwable argument. SLF4J trims a trailing
`Throwable` and reports it as the exception, so the stack trace is logged
correctly, but the second placeholder is left unfilled and the message
renders with a literal brace pair:
Error closing myEventSource -> {}
Drops the redundant placeholder and names what is being logged.
Note: the superficially similar calls in `InformerManager.stop` and
`InformerWrapper.start` are correct as they stand - they pass more
non-throwable arguments than placeholders, so nothing is left dangling.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
…rator-framework#3532) `log.warn("Error closing {} -> {}", eventSource.name(), e)` supplies two placeholders but only one non-throwable argument. SLF4J trims a trailing `Throwable` and reports it as the exception, so the stack trace is logged correctly, but the second placeholder is left unfilled and the message renders with a literal brace pair: Error closing myEventSource -> {} Drops the redundant placeholder and names what is being logged. Note: the superficially similar calls in `InformerManager.stop` and `InformerWrapper.start` are correct as they stand - they pass more non-throwable arguments than placeholders, so nothing is left dangling.
| Back | FazBrowse Home | New Git URL |
log.warn("Error closing {} -> {}", eventSource.name(), e) supplies two
placeholders but only one non-throwable argument. SLF4J trims a trailing
Throwable and reports it as the exception, so the stack trace is logged
correctly, but the second placeholder is left unfilled and the message
renders with a literal brace pair:
Error closing myEventSource -> {}Drops the redundant placeholder and names what is being logged.
Note: the superficially similar calls in InformerManager.stop and
InformerWrapper.start are correct as they stand - they pass more
non-throwable arguments than placeholders, so nothing is left dangling.
Part of #3517