Merge pull request #5263 from donaldsharp/pim_excessive_warnings

pimd: Do not spew a million warnings
This commit is contained in:
Mark Stapp 2019-11-01 12:13:00 -04:00 committed by GitHub
commit 7a6fc8774d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,11 +191,13 @@ void pim_ifchannel_delete(struct pim_ifchannel *ch)
pim_upstream_del(pim_ifp->pim, ch->upstream,
__PRETTY_FUNCTION__);
else
zlog_warn("%s: Avoiding deletion of upstream with ref_count %d "
else {
if (PIM_DEBUG_PIM_TRACE)
zlog_debug("%s: Avoiding deletion of upstream with ref_count %d "
"from ifchannel(%s): %s", __PRETTY_FUNCTION__,
ch->upstream->ref_count, ch->interface->name,
ch->sg_str);
}
ch->upstream = NULL;