Skip to content

Commit 25f9b1e

Browse files
MINOR: ShutdownableThread: log on error level on FatalExitError (#19351)
This will help debugging the error as the stacktrace is valuable in identifying the origin. Reviewers: TaiJuWu <[email protected]>, Igor Soarez <[email protected]>, Ken Huang <[email protected]>
1 parent 36c2fac commit 25f9b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server-common/src/main/java/org/apache/kafka/server/util/ShutdownableThread.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public void run() {
137137
} catch (FatalExitError e) {
138138
shutdownInitiated.countDown();
139139
shutdownComplete.countDown();
140-
log.info("Stopped");
140+
log.error("Stopped due to fatal error with exit code {}", e.statusCode(), e);
141141
Exit.exit(e.statusCode());
142142
} catch (Throwable e) {
143143
if (isRunning())

0 commit comments

Comments
 (0)