for sanity reasons -- huge RID lists make the log *VERY VERY* noisy, we'll silence this by not logging the toggle events;

pull/49/head
Bryan Biedenkapp 2 years ago
parent 86985a5ecc
commit b9c89aebf1

@ -48,24 +48,6 @@ RadioIdLookup::RadioIdLookup(const std::string& filename, uint32_t reloadTime, b
void RadioIdLookup::toggleEntry(uint32_t id, bool enabled)
{
RadioId rid = find(id);
if (!rid.radioEnabled() && rid.radioDefault()) {
if (enabled) {
LogMessage(LOG_HOST, "Added enabled RID %u (%s) to RID ACL table", id, rid.radioAlias().c_str());
}
else {
LogMessage(LOG_HOST, "Added disabled RID %u (%s) to RID ACL table", id, rid.radioAlias().c_str());
}
}
if (!rid.radioEnabled() && !rid.radioDefault()) {
if (enabled) {
LogMessage(LOG_HOST, "Enabled RID %u (%s) in RID ACL table", id, rid.radioAlias().c_str());
}
else {
LogMessage(LOG_HOST, "Disabled RID %u (%s) in RID ACL table", id, rid.radioAlias().c_str());
}
}
addEntry(id, enabled, rid.radioAlias());
}

Loading…
Cancel
Save

Powered by TurnKey Linux.