From 27b134ec0311e5295bd5743ac1cff9049c220342 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 10 Sep 2014 09:27:47 +0200 Subject: [PATCH] Add proper publisher for classified domains/hostnames --- bin/ZMQ_Sub_DomainClassifier.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/ZMQ_Sub_DomainClassifier.py b/bin/ZMQ_Sub_DomainClassifier.py index e246d011..6ac18f88 100755 --- a/bin/ZMQ_Sub_DomainClassifier.py +++ b/bin/ZMQ_Sub_DomainClassifier.py @@ -76,10 +76,12 @@ def main(): c.validdomain(rtype=['A'],extended=True) localizeddomains = c.include(expression=cc_tld) if localizeddomains: - print (localizeddomains) + print(localizeddomains) + publisher.warning('DomainC;{};{};{};Checked {} located in {}'.format( PST.p_source, PST.p_date, PST.p_name, localizeddomains, cc_tld)) localizeddomains = c.localizedomain(cc=cc) if localizeddomains: - print (localizeddomains) + print(localizeddomains) + publisher.warning('DomainC;{};{};{};Checked {} located in {}'.format( PST.p_source, PST.p_date, PST.p_name, localizeddomains, cc)) except IOError: print "CRC Checksum Failed on :", PST.p_path publisher.error('Duplicate;{};{};{};CRC Checksum Failed'.format(PST.p_source, PST.p_date, PST.p_name))