diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-12-06 12:04:12 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-12-06 12:04:59 +0000 |
commit | 87dd164958b89482e8d9ab6b9f6f4c6d3baad24e (patch) | |
tree | 2953dfadebc6f5684850b735bdc3913a5fb894aa /config | |
parent | 841d226d5838d36d4d13872ab7ba4f4824d9e490 (diff) |
Add some more logging and only update config if md5 has changed.
Diffstat (limited to 'config')
-rw-r--r-- | config/src/vespa/config/frt/frtconfigagent.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/src/vespa/config/frt/frtconfigagent.cpp b/config/src/vespa/config/frt/frtconfigagent.cpp index 9a51155e882..f475cff0a9a 100644 --- a/config/src/vespa/config/frt/frtconfigagent.cpp +++ b/config/src/vespa/config/frt/frtconfigagent.cpp @@ -57,9 +57,13 @@ void FRTConfigAgent::handleUpdatedGeneration(const ConfigKey & key, const ConfigState & newState, const ConfigValue & configValue) { if (LOG_WOULD_LOG(spam)) { - LOG(spam, "new generation %ld for key %s", newState.generation, key.toString().c_str()); + LOG(spam, "new generation %ld md5:%s for key %s", newState.generation, newState.md5.c_str(), key.toString().c_str()); + LOG(spam, "Old config: md5:%s \n%s", _latest.getMd5().c_str(), _latest.asJson().c_str()); + LOG(spam, "New config: md5:%s \n%s", configValue.getMd5().c_str(), configValue.asJson().c_str()); + } + if (_latest.getMd5() != configValue.getMd5()) { + _latest = configValue; } - _latest = configValue; _configState = newState; |