Skip to content

Commit

Permalink
fix(kafka-runner): wrong logger for KafkaStreamService
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed May 4, 2022
1 parent ed86d0d commit c36610f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private Stream(Topology topology, Properties props, MetricRegistry meterRegistry

public synchronized void start(final KafkaStreams.StateListener listener) throws IllegalStateException, StreamsException {
this.setUncaughtExceptionHandler(e -> {
log.error("Uncaught exception in Kafka Stream, closing !", e);
this.logger.error("Uncaught exception in Kafka Stream, closing !", e);
return StreamsUncaughtExceptionHandler.StreamThreadExceptionResponse.SHUTDOWN_APPLICATION;
});

Expand Down Expand Up @@ -182,12 +182,12 @@ public synchronized void start(final KafkaStreams.StateListener listener) throws
newState == State.NOT_RUNNING ||
newState == State.PENDING_SHUTDOWN
) {
log.warn("Switching stream state from {} to {}", oldState, newState);
this.logger.warn("Switching stream state from {} to {}", oldState, newState);
} else if (
newState == State.PENDING_ERROR ||
newState == State.ERROR
) {
log.error("Switching stream state from {} to {}", oldState, newState);
this.logger.error("Switching stream state from {} to {}", oldState, newState);
} else {
logger.info("Switching stream state from {} to {}", oldState, newState);
}
Expand Down

0 comments on commit c36610f

Please sign in to comment.