BUG-7386 Remove blocking gracefulshutdown
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / AdjRibInWriter.java
index e6761de07ea55e4122a78bcd52cb4a1cb0227cfa..11e96da6914a4fc397ee130dc36a134f8a745299 100644 (file)
@@ -155,7 +155,12 @@ final class AdjRibInWriter {
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.error("Failed to register Application Peer Listener", throwable);
+                if(registerAppPeerListener != null) {
+                    LOG.error("Failed to create Empty Structure, Application Peer Listener won't be registered",
+                        throwable);
+                } else {
+                    LOG.error("Failed to create Empty Structure", throwable);
+                }
             }
         });
         return new AdjRibInWriter(this.ribPath, this.chain, this.role, this.simpleRoutingPolicy, newPeerPath, tb);