Add Debug

pull/4158/head
Ben Dailey 2024-10-01 09:33:58 -04:00
parent f43268b184
commit 5c31384063
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {