aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHÃ¥vard Pettersen <havardpe@gmail.com>2016-06-28 14:23:11 +0200
committerGitHub <noreply@github.com>2016-06-28 14:23:11 +0200
commita27456582995b00e1329a7cf9a98231f151f4fe9 (patch)
tree06a156bc1aa54720a242f27f99bc87215dce2259 /searchcore
parent52e926acfd0514705216bc78e51f4b4728864686 (diff)
parent5d2db292e804671de518a3e87587b2ad0a94d5f9 (diff)
Merge pull request #232 from yahoo/balder/warning-not-error
No need to produce error on this, warning will do.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp b/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp
index 6e06c91a902..0af1a7e3e2b 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp
+++ b/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp
@@ -259,15 +259,15 @@ namespace {
bool needRestart(const FdispatchrcConfig & curr, const FdispatchrcConfig & next)
{
if (curr.frtport != next.frtport) {
- LOG(error, "FRT port has changed from %d to %d.", curr.frtport, next.frtport);
+ LOG(warning, "FRT port has changed from %d to %d.", curr.frtport, next.frtport);
return true;
}
if (curr.ptport != next.ptport) {
- LOG(error, "PT port has changed from %d to %d.", curr.ptport, next.ptport);
+ LOG(warning, "PT port has changed from %d to %d.", curr.ptport, next.ptport);
return true;
}
if (curr.healthport != next.healthport) {
- LOG(error, "Health port has changed from %d to %d.", curr.healthport, next.healthport);
+ LOG(warning, "Health port has changed from %d to %d.", curr.healthport, next.healthport);
return true;
}
return false;
@@ -280,7 +280,7 @@ void Fdispatch::configure(std::unique_ptr<FdispatchrcConfig> cfg)
if (cfg && _config) {
if ( needRestart(*_config, *cfg) ) {
const int sleepMS = (1.0 + 30 * _rndGen.nextDouble()) * 1000;
- LOG(error, "Will restart by abort in %d ms.", sleepMS);
+ LOG(warning, "Will restart by abort in %d ms.", sleepMS);
std::this_thread::sleep_for(std::chrono::milliseconds(sleepMS));
_needRestart.store(true);
}