From: Michael Orlitzky Date: Thu, 15 Sep 2022 00:51:00 +0000 (-0400) Subject: bin/djbdns-logparse: fix line splitting in tinydns output. X-Git-Tag: 0.0.1~58 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=djbdns-logparse.git;a=commitdiff_plain;h=17d585d37f07ee79c900c37167d360f5a439062d bin/djbdns-logparse: fix line splitting in tinydns output. --- 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