Committed by
Gerrit Code Review
Suppress stacktrace of benign exception when computing topology
Change-Id: Ifb1e4ae9d46c1db6a0c918b7a750f5f54bdfd67b
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -17,8 +17,7 @@ package org.onosproject.net.topology; | ... | @@ -17,8 +17,7 @@ package org.onosproject.net.topology; |
17 | 17 | ||
18 | import static org.slf4j.LoggerFactory.getLogger; | 18 | import static org.slf4j.LoggerFactory.getLogger; |
19 | 19 | ||
20 | -import com.google.common.collect.ImmutableSet; | 20 | +import java.util.Map; |
21 | -import com.google.common.collect.Maps; | ||
22 | 21 | ||
23 | import org.onosproject.net.AbstractDescription; | 22 | import org.onosproject.net.AbstractDescription; |
24 | import org.onosproject.net.ConnectPoint; | 23 | import org.onosproject.net.ConnectPoint; |
... | @@ -28,7 +27,8 @@ import org.onosproject.net.Link; | ... | @@ -28,7 +27,8 @@ import org.onosproject.net.Link; |
28 | import org.onosproject.net.SparseAnnotations; | 27 | import org.onosproject.net.SparseAnnotations; |
29 | import org.slf4j.Logger; | 28 | import org.slf4j.Logger; |
30 | 29 | ||
31 | -import java.util.Map; | 30 | +import com.google.common.collect.ImmutableSet; |
31 | +import com.google.common.collect.Maps; | ||
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Default implementation of an immutable topology graph data carrier. | 34 | * Default implementation of an immutable topology graph data carrier. |
... | @@ -97,7 +97,7 @@ public class DefaultGraphDescription extends AbstractDescription | ... | @@ -97,7 +97,7 @@ public class DefaultGraphDescription extends AbstractDescription |
97 | edges.add(new DefaultTopologyEdge(vertexOf(link.src()), | 97 | edges.add(new DefaultTopologyEdge(vertexOf(link.src()), |
98 | vertexOf(link.dst()), link)); | 98 | vertexOf(link.dst()), link)); |
99 | } catch (IllegalArgumentException e) { | 99 | } catch (IllegalArgumentException e) { |
100 | - log.debug("Ignoring {}, missing vertex", link, e); | 100 | + log.debug("Ignoring {}, missing vertex", link); |
101 | } | 101 | } |
102 | } | 102 | } |
103 | return edges.build(); | 103 | return edges.build(); | ... | ... |
-
Please register or login to post a comment