Skip to content

Commit

Permalink
improve: informer stop handler logging (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
csviri authored Feb 6, 2023
1 parent 6e224d4 commit 2ce7703
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ default Optional<InformerStoppedHandler> getInformerStoppedHandler() {
log.error("Fatal error in informer: {}. Stopping the operator", informer, ex);
System.exit(1);
} else {
log.debug("Informer stopped: {}. Error: {}", informer, ex);
log.debug(
"Informer stopped: {}. Has synced: {}, Error: {}. This can happen as a result of " +
"stopping the controller, or due to an error on startup." +
"See also stopOnInformerErrorDuringStartup configuration.",
informer, informer.hasSynced(), ex);
}
});
}
Expand Down

0 comments on commit 2ce7703

Please sign in to comment.