File tree 1 file changed +4
-1
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 24
24
/** An interface from which to retrieve configuration information. */
25
25
public interface ConfigurationService {
26
26
27
+ Logger log = LoggerFactory .getLogger (ConfigurationService .class );
28
+
27
29
/**
28
30
* Retrieves the configuration associated with the specified reconciler
29
31
*
@@ -188,9 +190,10 @@ default Optional<InformerStoppedHandler> getInformerStoppedHandler() {
188
190
// hasSynced is checked to verify that informer already started. If not started, in case
189
191
// of a fatal error the operator will stop, no need for explicit exit.
190
192
if (ex != null && informer .hasSynced ()) {
191
- Logger log = LoggerFactory .getLogger (ConfigurationService .class );
192
193
log .error ("Fatal error in informer: {}. Stopping the operator" , informer , ex );
193
194
System .exit (1 );
195
+ } else {
196
+ log .debug ("Informer stopped: {}. Error: {}" , informer , ex );
194
197
}
195
198
});
196
199
}
You can’t perform that action at this time.
0 commit comments