Make sure to get key before logging it
@@ -94,6 +94,7 @@ ConfigSubscriptionSet::acquireSnapshot(uint64_t timeoutInMillis, bool ignoreChan
for (SubscriptionList::iterator it(_subscriptionList.begin()), mt(_subscriptionList.end());
it != mt;
it++) {
+ const ConfigKey & key((*it)->getKey());
LOG(debug, "Updated config id(%s), has changed: %s, lastGenerationChanged: %ld", key.getConfigId().c_str(), ((*it)->hasChanged() ? "true" : "false"), (*it)->getLastGenerationChanged());
(*it)->flip();
}
