From 5ff4759ff2a12e27625ab5f2253e7afbed2413a5 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 1 Apr 2019 07:15:22 +0200 Subject: [PATCH] chg: [ingestion] add debug output when parsing failed or the parsing is incomplete --- bin/pdns-ingestion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pdns-ingestion.py b/bin/pdns-ingestion.py index fdb157c..67bef53 100644 --- a/bin/pdns-ingestion.py +++ b/bin/pdns-ingestion.py @@ -94,9 +94,10 @@ while (True): rdns = process_format_passivedns(line=l.strip()) logger.debug("parsed record: {}".format(rdns)) if rdns is False: - # need to add logging when it fails + logger.debug('Parsing of passive DNS line failed: {}'.format(l.strip())) continue if 'q' not in rdns: + logger.debug('Parsing of passive DNS line is incomplete: {}'.format(l.strip())) continue if rdns['q'] and rdns['type']: if rdns['type'] == '16':