Skip to content

Commit 2ce7703

Browse files
authored
improve: informer stop handler logging (#1743)
1 parent 6e224d4 commit 2ce7703

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ default Optional<InformerStoppedHandler> getInformerStoppedHandler() {
193193
log.error("Fatal error in informer: {}. Stopping the operator", informer, ex);
194194
System.exit(1);
195195
} else {
196-
log.debug("Informer stopped: {}. Error: {}", informer, ex);
196+
log.debug(
197+
"Informer stopped: {}. Has synced: {}, Error: {}. This can happen as a result of " +
198+
"stopping the controller, or due to an error on startup." +
199+
"See also stopOnInformerErrorDuringStartup configuration.",
200+
informer, informer.hasSynced(), ex);
197201
}
198202
});
199203
}

0 commit comments

Comments
 (0)