Commit 10e42a95 authored by Micha Mueller's avatar Micha Mueller
Browse files

Clarify debug log messages

parent 9a0cf496
......@@ -70,7 +70,7 @@ void ${PLUGIN_NAME}SensorGroup::read() {
*/ 0;
s->storeReading(reading);
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << ": \"" << reading.value << "\"";
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
}
} catch (const std::exception& e) {
......
......@@ -68,7 +68,7 @@ void BACnetSensorGroup::read() {
try {
reading.value = _bacClient->readProperty(getDeviceInstance(), s->getObjectInstance(), s->getObjectType(), s->getPropertyId());
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << ": \"" << reading.value << "\"";
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
s->storeReading(reading, s->getFactor());
} catch (const std::exception& e) {
......
......@@ -76,7 +76,7 @@ void IPMISensorGroup::read() {
reading.value = _host->sendRawCmd(s->getRawCmd(), s->getStart(), s->getStop());
}
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << ": \"" << reading.value << "\"";
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
s->storeReading(reading, s->getFactor());
} catch (const std::exception& e) {
......
......@@ -162,7 +162,7 @@ void OpaSensorGroup::read() {
}
s->storeReading(reading);
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << ": \"" << reading.value << "\"";
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
}
}
......
......@@ -117,7 +117,7 @@ void PDUSensorGroup::read() {
}
reading.value = stoll(readStr);
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << ": \"" << reading.value << "\"";
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
s->storeReading(reading);
} catch (const std::exception& e) {
......
......@@ -196,7 +196,7 @@ void PerfSensorGroup::read() {
for (unsigned j = 0; j < _sensors.size(); j++) {
if (rf->values[i].id == _ids[j]) {
#ifdef DEBUG
LOG(debug) << _groupName << "::" << _sensors[j]->getName() << ": \"" << val << "\"";
LOG(debug) << _groupName << "::" << _sensors[j]->getName() << " raw reading: \"" << val << "\"";
#endif
if(_lastValid){
//storeReading takes care of delta computation and applies correction value on the result
......
......@@ -54,7 +54,7 @@ void SNMPSensorGroup::read() {
try {
reading.value = _connection->issueGet(s->getOID(), s->getOIDLen());
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << ": \"" << reading.value << "\"";
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
s->storeReading(reading);
} catch (const std::exception& e) {
......
......@@ -74,7 +74,7 @@ void SysfsSensorGroup::read() {
reading.value = stoll(buf);
}
#ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << ": \"" << reading.value << "\"";
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
#endif
s->storeReading(reading);
} catch (const std::exception& e) {
......
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