chg: [ingestion] add debug output when parsing failed or the parsing is incomplete
parent
2c799f5f4c
commit
5ff4759ff2
|
@ -94,9 +94,10 @@ while (True):
|
||||||
rdns = process_format_passivedns(line=l.strip())
|
rdns = process_format_passivedns(line=l.strip())
|
||||||
logger.debug("parsed record: {}".format(rdns))
|
logger.debug("parsed record: {}".format(rdns))
|
||||||
if rdns is False:
|
if rdns is False:
|
||||||
# need to add logging when it fails
|
logger.debug('Parsing of passive DNS line failed: {}'.format(l.strip()))
|
||||||
continue
|
continue
|
||||||
if 'q' not in rdns:
|
if 'q' not in rdns:
|
||||||
|
logger.debug('Parsing of passive DNS line is incomplete: {}'.format(l.strip()))
|
||||||
continue
|
continue
|
||||||
if rdns['q'] and rdns['type']:
|
if rdns['q'] and rdns['type']:
|
||||||
if rdns['type'] == '16':
|
if rdns['type'] == '16':
|
||||||
|
|
Loading…
Reference in New Issue