Skip to content

Commit 0262d87

Browse files
izeyeartembilan
authored andcommitted
Remove unnecessary logging guards
1 parent 185e982 commit 0262d87

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,7 @@ public void run() {
699699
((ThreadPoolTaskScheduler) this.taskScheduler).destroy();
700700
}
701701
this.consumer.close();
702-
if (this.logger.isInfoEnabled()) {
703-
this.logger.info("Consumer stopped");
704-
}
702+
this.logger.info("Consumer stopped");
705703
}
706704

707705
private void commitPendingAcks() {
@@ -1211,9 +1209,7 @@ private void commitIfNecessary() {
12111209
}
12121210
catch (WakeupException e) {
12131211
// ignore - not polling
1214-
if (this.logger.isDebugEnabled()) {
1215-
this.logger.debug("Woken up during commit");
1216-
}
1212+
this.logger.debug("Woken up during commit");
12171213
}
12181214
}
12191215
}

0 commit comments

Comments
 (0)