Bug 5077: Codes break the security rules
[nemo.git] / nemo-tools / sandbox / src / main / java / org / opendaylight / nemo / tool / sandbox / models / Link.java
index 774df919fdc1006e9f5d272ce388fdec02faa293..3f896a252c1aad85ec13976f1166364d610f429a 100644 (file)
@@ -14,6 +14,7 @@ import org.opendaylight.nemo.tool.sandbox.CmdExecutor;
  * Created by hj on 12/8/15.
  */
 public class Link {
+    private static Logger log = LoggerFactory.getLogger(Link.class);
     private final Connector srcInterface;
     private final Connector dstInterface;
 
@@ -35,7 +36,8 @@ public class Link {
         try {
             CmdExecutor.sshExecute(linkAddCmd);
         } catch (Exception e) {
-            e.printStackTrace();
+            // TODO Auto-generated catch block
+            log.error(e);
         }
     }
 
@@ -44,7 +46,8 @@ public class Link {
         try {
             CmdExecutor.sshExecute(linkDelCmd);
         } catch (Exception e) {
-            e.printStackTrace();
+            // TODO Auto-generated catch block
+            log.error(e);
         }
     }