Senrian opened a new pull request, #21625:
URL: https://github.com/apache/kafka/pull/21625
## Description
Replace `printStackTrace()` calls with proper logging using SLF4J
`log.warn()` in `KafkaStreamsNamedTopologyWrapper.java`.
## Changes
- Line 309: Replace `ex.printStackTrace()` with `log.warn("Interrupted while
resetting offsets", ex)`
- Line 334: Replace `ex.printStackTrace()` with `log.warn("Interrupted while
resetting offsets", ex)`
## Why
Using `printStackTrace()` is not recommended in production code as it:
1. Does not respect logging configuration
2. Writes directly to stderr
3. Cannot be easily filtered or controlled
Using proper logging ensures consistent log management and better production
monitoring.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]