Fix misleading log message

This commit is contained in:
Oliver Hamlet
2025-03-02 22:40:47 +00:00
parent 3e6828dbde
commit 55b341fc6c
+11 -10
View File
@@ -1042,16 +1042,17 @@ void PluginGraph::AddOverlapEdges() {
const auto fromVertex = thisPluginLoadsFirst ? vertex : otherVertex;
const auto toVertex = thisPluginLoadsFirst ? otherVertex : vertex;
if (!IsPathCached(fromVertex, toVertex) &&
!PathExists(toVertex, fromVertex)) {
AddEdge(fromVertex, toVertex, edgeType);
} else if (logger) {
logger->debug(
"Skipping {} edge from \"{}\" to \"{}\" as it would "
"create a cycle.",
describeEdgeType(edgeType),
GetPlugin(fromVertex).GetName(),
GetPlugin(toVertex).GetName());
if (!IsPathCached(fromVertex, toVertex)) {
if (!PathExists(toVertex, fromVertex)) {
AddEdge(fromVertex, toVertex, edgeType);
} else if (logger) {
logger->debug(
"Skipping {} edge from \"{}\" to \"{}\" as it would "
"create a cycle.",
describeEdgeType(edgeType),
GetPlugin(fromVertex).GetName(),
GetPlugin(toVertex).GetName());
}
}
}
}