summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-05-31 15:54:34 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-05-31 15:54:34 +0200
commite6fdf24666ba3154d3e5eaa9956506b711cf57d5 (patch)
tree9669ecec485f8f6c74fe90213af1f44ad5a60f0e /config
parent1a1e39f25811f9e90de55d9ab04a0f99585d6716 (diff)
You shall not catch unless you know what you are catching and also how to handle it !!!
Diffstat (limited to 'config')
-rw-r--r--config/src/vespa/config/helper/configpoller.cpp6
-rw-r--r--config/src/vespa/config/helper/configpoller.h3
2 files changed, 1 insertions, 8 deletions
diff --git a/config/src/vespa/config/helper/configpoller.cpp b/config/src/vespa/config/helper/configpoller.cpp
index ee9ec1bbc31..7166c561a5e 100644
--- a/config/src/vespa/config/helper/configpoller.cpp
+++ b/config/src/vespa/config/helper/configpoller.cpp
@@ -22,11 +22,7 @@ void
ConfigPoller::run()
{
while (!_subscriber.isClosed()) {
- try {
- poll();
- } catch (const std::exception & e) {
- LOG(fatal, "Fatal error while configuring: %s", e.what());
- }
+ poll();
}
}
diff --git a/config/src/vespa/config/helper/configpoller.h b/config/src/vespa/config/helper/configpoller.h
index af660f6c536..889c6631738 100644
--- a/config/src/vespa/config/helper/configpoller.h
+++ b/config/src/vespa/config/helper/configpoller.h
@@ -32,9 +32,6 @@ private:
IGenerationCallback *_genCallback;
};
-
} // namespace config
#include "configpoller.hpp"
-
-