mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-11-02 09:11:29 +01:00
Suppress stacktrace of benign exception when computing topology
Change-Id: Ifb1e4ae9d46c1db6a0c918b7a750f5f54bdfd67b
This commit is contained in:
parent
eb8e3ea61a
commit
1e37d561ef
@ -17,8 +17,7 @@ package org.onosproject.net.topology;
|
|||||||
|
|
||||||
import static org.slf4j.LoggerFactory.getLogger;
|
import static org.slf4j.LoggerFactory.getLogger;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import java.util.Map;
|
||||||
import com.google.common.collect.Maps;
|
|
||||||
|
|
||||||
import org.onosproject.net.AbstractDescription;
|
import org.onosproject.net.AbstractDescription;
|
||||||
import org.onosproject.net.ConnectPoint;
|
import org.onosproject.net.ConnectPoint;
|
||||||
@ -28,7 +27,8 @@ import org.onosproject.net.Link;
|
|||||||
import org.onosproject.net.SparseAnnotations;
|
import org.onosproject.net.SparseAnnotations;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
import java.util.Map;
|
import com.google.common.collect.ImmutableSet;
|
||||||
|
import com.google.common.collect.Maps;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of an immutable topology graph data carrier.
|
* Default implementation of an immutable topology graph data carrier.
|
||||||
@ -97,7 +97,7 @@ public class DefaultGraphDescription extends AbstractDescription
|
|||||||
edges.add(new DefaultTopologyEdge(vertexOf(link.src()),
|
edges.add(new DefaultTopologyEdge(vertexOf(link.src()),
|
||||||
vertexOf(link.dst()), link));
|
vertexOf(link.dst()), link));
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
log.debug("Ignoring {}, missing vertex", link, e);
|
log.debug("Ignoring {}, missing vertex", link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return edges.build();
|
return edges.build();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user