]> gitweb.michael.orlitzky.com - djbdns-logparse.git/commitdiff
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)
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.


No differences found