From 010a73e2736fc9ce02165483a19320598f15f384 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 6 Apr 2021 17:11:24 +0200 Subject: [PATCH] fix: [Web module] resolver, change log level --- bin/Web.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/Web.py b/bin/Web.py index b544d011..473489a5 100755 --- a/bin/Web.py +++ b/bin/Web.py @@ -31,7 +31,6 @@ import ipaddress from module.abstract_module import AbstractModule from packages import Paste from packages import lib_refine -from pubsublogger import publisher from Helper import Process @@ -143,12 +142,12 @@ class Web(AbstractModule): # ASN/CC lookup is skip. l = client.lookup(ip, qType='IP') except ipaddress.AddressValueError: - self.redis_logger.error( - 'ASN/CC lookup failed for IP {}'.format(ip)) + self.redis_logger.debug( + f'ASN/CC lookup failed for IP {ip}') continue except: - self.redis_logger.error( - 'Resolver IPv4 address failed for host {}'.format(hostl)) + self.redis_logger.debug( + f'Resolver IPv4 address failed for host {hostl}') continue cc = getattr(l, 'cc')