- If a port is already under OF control and then hw LLDP transmit is enabled on it...
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / internal / SwitchHandler.java
index 45203758bdd45e13486936faab73c27f947f547d..b87b785e3c1aa8f0d855c12208bba8088a421cf1 100644 (file)
@@ -428,7 +428,11 @@ public class SwitchHandler implements ISwitch {
     }
 
     private void reportError(Exception e) {
-        logger.debug("Caught exception ", e);
+       if (e instanceof AsynchronousCloseException) {
+               logger.debug("Caught exception {}", e.getMessage());
+       } else {
+               logger.warn("Caught exception {}", e.getMessage());
+       }
         // notify core of this error event and disconnect the switch
         ((Controller) core).takeSwitchEventError(this);
     }