Add Debug
parent
f43268b184
commit
5c31384063
|
@ -184,6 +184,7 @@ void Monitor::ONVIF::WaitForMessage() {
|
|||
Info("Triggered off ONVIF");
|
||||
alarms.erase(last_topic);
|
||||
if(alarms.empty()) {
|
||||
Debug(1, "ONVIF Alarms Empty: Alarms count is %zu, alarmed is %s", alarms.size(), alarmed ? "true": "false");
|
||||
alarmed = false;
|
||||
}
|
||||
if (!parent->Event_Poller_Closes_Event) { //If we get a close event, then we know to expect them.
|
||||
|
@ -206,6 +207,7 @@ void Monitor::ONVIF::WaitForMessage() {
|
|||
}
|
||||
}
|
||||
}
|
||||
Debug(1, "ONVIF Alarms count is %zu, alarmed is %s", alarms.size(), alarmed ? "true": "false");
|
||||
} else {
|
||||
Debug(1, "ONVIF Got a message that we couldn't parse");
|
||||
if ((msg->Topic != nullptr) && (msg->Topic->__any.text != nullptr)) {
|
||||
|
|
Loading…
Reference in New Issue