]> gitweb.michael.orlitzky.com - djbdns-logparse.git/commit
bin/djbdns-logparse.py: move regex handling down a level.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 15 Sep 2022 22:50:26 +0000 (18:50 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 15 Sep 2022 22:54:12 +0000 (18:54 -0400)
commitf25211451281423e478270867596dc2a34515c0a
tree9832228bfeff47562100600c16074725b552e1ce
parentae92ef4425795f75bb0512353faf437a1da4cbc6
bin/djbdns-logparse.py: move regex handling down a level.

It was a bit awkward to match a line against a regex, and then to have
to immediately pass that match object into a function that knows what
to do with it (to avoid duplicating work). Now the handle_tinydns_log()
and handle_dnscache_log() functions create the match object themselves,
and signal success or failure by returning a boolean.
bin/djbdns-logparse.py