diff --git a/JugFast/src/components/MatchClusters.cpp b/JugFast/src/components/MatchClusters.cpp index 293c31c96f6c2cf15f2e4383a048d4a5914b4fa8..5b0afcc9244498e5cfa3162850e424ef5b3d3124 100644 --- a/JugFast/src/components/MatchClusters.cpp +++ b/JugFast/src/components/MatchClusters.cpp @@ -168,7 +168,14 @@ private: for (const auto& cluster_handle : cluster_collections) { const auto& clusters = *(cluster_handle->get()); for (const auto& cluster : clusters) { - matched[cluster.ID()] = cluster; + if (msgLevel(MSG::VERBOSE)) { + const bool duplicate = matched.count(cluster.mcID()); + verbose() << "Found cluster: " << cluster.ID() << " with mcID " << cluster.mcID() << endmsg; + if (duplicate) { + verbose() << " --> WARNING: this is a duplicate mcID, overwriting previous cluster" << endmsg; + } + } + matched[cluster.mcID()] = cluster; } } return matched;