]> git.puffer.fish Git - mirror/frr.git/commit
lib: Filter logs as they come in via macros
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 13 Jun 2019 21:48:53 +0000 (17:48 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Wed, 19 Jun 2019 21:20:24 +0000 (17:20 -0400)
commitfc2a67dd25162322e347cd970b83858a77bb5d81
tree37677e636d1d9200aa160daaf65511c03483253b
parentf73126c31acdd496dcc88c69059a5e0103d6a2ff
lib: Filter logs as they come in via macros

As logging functions are called, if filters are stored,
look for the filter substring in the logs. If it is not
found, do not output the log to a file or stdout.

If the filter is matched, handle the log call per usual.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
lib/log.c