X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=djbdns%2Fcommon.py;h=ea5dd310a79f98486a663caaf2b53fe40b15fede;hb=49ee5a403cafc02a8e398c840b9bbc4c9d9e0f72;hp=06124bf2ef03135d7177b18787a61d8bf7ed31b0;hpb=db1cc70a2cd45943ed33520f82a773acd4f2a520;p=djbdns-logparse.git diff --git a/djbdns/common.py b/djbdns/common.py index 06124bf..ea5dd31 100644 --- a/djbdns/common.py +++ b/djbdns/common.py @@ -3,7 +3,7 @@ from struct import pack # A pattern to match the timestamp format that the tai64nlocal program # produces. It appears in both dnscache and tinydns lines, after # they've been piped through tai64nlocal, of course. -timestamp_pat = r'[\d-]+ [\d:\.]+' +TIMESTAMP_PAT = r'[\d-]+ [\d:\.]+' # A dictionary mapping query type identifiers, in decimal, to their # friendly names for tinydns. Reference: @@ -12,7 +12,7 @@ timestamp_pat = r'[\d-]+ [\d:\.]+' # # Note that mapping here is non-exhaustive, and that tinydns will # log responses for record types that it does not know about. -query_type_name = { +QUERY_TYPE_NAME = { 1: "a", 2: "ns", 5: "cname",