Skip to content

Commit d61ce2a

Browse files
authored
feat: log if shotdown was stard or not (#793)
During troublesheeting an issue the QOSDK was shutting down unexpectedly, this will give more information if it comes from OS or the app exists. Signed-off-by: Attila Mészáros <[email protected]>
1 parent c396900 commit d61ce2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/runtime/src/main/java/io/quarkiverse/operatorsdk/runtime/AppEventListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public void onStartup(@Observes @Priority(Interceptor.Priority.LIBRARY_AFTER + 1
3636

3737
public void onShutdown(@Observes ShutdownEvent event) {
3838
if (configurationService.shouldStartOperator()) {
39-
log.info("Quarkus Java Operator SDK extension is shutting down.");
39+
log.info("Quarkus Java Operator SDK extension is shutting down. Is standard shutdown: {}",
40+
event.isStandardShutdown());
4041
operator.stop();
4142
} else {
4243
log.warn("Operator was configured not to start automatically, call the stop method to stop it.");

0 commit comments

Comments
 (0)