chg: [ingestion] add debug output when parsing failed or the parsing is incomplete

pull/3/head
Alexandre Dulaunoy 2019-04-01 07:15:22 +02:00
parent 2c799f5f4c
commit 5ff4759ff2
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 1 deletions

View File

@ -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':