X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fflowprogrammer%2FFlow.java;fp=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fflowprogrammer%2FFlow.java;h=ed6d0e503394c820fd48da0236e55ac0f1850434;hb=d192c699590d441eb96a697b9e8ab7a028f18860;hp=f39de8f023b792beb6c38e6845d53330d526fe8a;hpb=38379f996f946943172a1c62a49c86bff1c444eb;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/Flow.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/Flow.java index f39de8f023..ed6d0e5033 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/Flow.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/flowprogrammer/Flow.java @@ -29,6 +29,8 @@ import org.opendaylight.controller.sal.action.SetNwDst; import org.opendaylight.controller.sal.action.SetNwSrc; import org.opendaylight.controller.sal.match.Match; import org.opendaylight.controller.sal.utils.EtherTypes; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Represent a flow: match + actions + flow specific properties @@ -37,6 +39,8 @@ import org.opendaylight.controller.sal.utils.EtherTypes; @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) public class Flow implements Cloneable, Serializable { + protected static final Logger logger = LoggerFactory + .getLogger(Flow.class); private static final long serialVersionUID = 1L; @XmlElement private Match match; @@ -61,7 +65,7 @@ public class Flow implements Cloneable, Serializable { try { throw new Exception("Conflicting Match and Action list"); } catch (Exception e) { - e.printStackTrace(); + logger.error("",e); } } else { this.match = match; @@ -170,7 +174,7 @@ public class Flow implements Cloneable, Serializable { cloned.match = this.getMatch(); cloned.actions = this.getActions(); } catch (CloneNotSupportedException e) { - e.printStackTrace(); + logger.error("",e); } return cloned; }