Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
/** An interface from which to retrieve configuration information. */
public interface ConfigurationService {

Logger log = LoggerFactory.getLogger(ConfigurationService.class);

/**
* Retrieves the configuration associated with the specified reconciler
*
Expand Down Expand Up @@ -188,9 +190,10 @@ default Optional<InformerStoppedHandler> getInformerStoppedHandler() {
// hasSynced is checked to verify that informer already started. If not started, in case
// of a fatal error the operator will stop, no need for explicit exit.
if (ex != null && informer.hasSynced()) {
Logger log = LoggerFactory.getLogger(ConfigurationService.class);
log.error("Fatal error in informer: {}. Stopping the operator", informer, ex);
System.exit(1);
} else {
log.debug("Informer stopped: {}. Error: {}", informer, ex);
}
});
}
Expand Down