From 17d585d37f07ee79c900c37167d360f5a439062d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 14 Sep 2022 20:51:00 -0400 Subject: [PATCH] bin/djbdns-logparse: fix line splitting in tinydns output. --- bin/djbdns-logparse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2