mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix: [Web module] resolver, change log level
This commit is contained in:
parent
1d222ddc9a
commit
010a73e273
1 changed files with 4 additions and 5 deletions
|
@ -31,7 +31,6 @@ import ipaddress
|
||||||
from module.abstract_module import AbstractModule
|
from module.abstract_module import AbstractModule
|
||||||
from packages import Paste
|
from packages import Paste
|
||||||
from packages import lib_refine
|
from packages import lib_refine
|
||||||
from pubsublogger import publisher
|
|
||||||
from Helper import Process
|
from Helper import Process
|
||||||
|
|
||||||
|
|
||||||
|
@ -143,12 +142,12 @@ class Web(AbstractModule):
|
||||||
# ASN/CC lookup is skip.
|
# ASN/CC lookup is skip.
|
||||||
l = client.lookup(ip, qType='IP')
|
l = client.lookup(ip, qType='IP')
|
||||||
except ipaddress.AddressValueError:
|
except ipaddress.AddressValueError:
|
||||||
self.redis_logger.error(
|
self.redis_logger.debug(
|
||||||
'ASN/CC lookup failed for IP {}'.format(ip))
|
f'ASN/CC lookup failed for IP {ip}')
|
||||||
continue
|
continue
|
||||||
except:
|
except:
|
||||||
self.redis_logger.error(
|
self.redis_logger.debug(
|
||||||
'Resolver IPv4 address failed for host {}'.format(hostl))
|
f'Resolver IPv4 address failed for host {hostl}')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cc = getattr(l, 'cc')
|
cc = getattr(l, 'cc')
|
||||||
|
|
Loading…
Reference in a new issue