X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fdjbdns-logparse;h=76522c5c0e9c886762eb0e01a40613cd5bf43c8f;hb=17d585d37f07ee79c900c37167d360f5a439062d;hp=32c7ba106139916df2cd0241c2e50956e824e815;hpb=40229a750e8322074453b761106803de51bbe800;p=djbdns-logparse.git diff --git a/bin/djbdns-logparse b/bin/djbdns-logparse index 32c7ba1..76522c5 100755 --- a/bin/djbdns-logparse +++ b/bin/djbdns-logparse @@ -194,7 +194,7 @@ def handle_tinydns_log(line, match): type = int(type, 16) # "001c" -> 28 type = query_type.get(type, type) # 28 -> "aaaa" - print(timestamp,) + print(timestamp, end=' ') if code == "+": print ("sent response to %s:%s (id %s): %s %s" @@ -231,7 +231,7 @@ def parse_logfile(file): handle_dnscache_log(line, match) continue - sys.stdout.write(line) + print(line) def main(): # Create an argument parser using the file's docsctring as its