Commit 29777058 authored by Michael Ott's avatar Michael Ott
Browse files

Make CollectAgent fail if it can't retrieve the published sensors

parent 66897b10
......@@ -737,9 +737,12 @@ int main(int argc, char* const argv[]) {
// Fetching public sensor information from the Cassandra datastore
list<DCDB::PublicSensor> publicSensors;
if(mySensorConfig->getPublicSensorsVerbose(publicSensors)!=SC_OK) {
LOG(error) << "Failed to retrieve public sensors!";
exit(EXIT_FAILURE);
}
metadataStore = new MetadataStore();
if(mySensorConfig->getPublicSensorsVerbose(publicSensors)!=SC_OK)
LOG(error) << "Failed to retrieve public sensors. Metadata Store and Sensor Navigator will be empty.";
SensorMetadata sBuf;
for (const auto &s : publicSensors)
if (!s.is_virtual) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment