mirror of https://github.com/CIRCL/lookyloo
fix: remove print, replace with logging
parent
407b63ec3b
commit
01b9f8d1be
|
@ -118,7 +118,7 @@ class CapturesIndex(Mapping):
|
||||||
self.ipasnhistory = None
|
self.ipasnhistory = None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Unable to setup IPASN History
|
# Unable to setup IPASN History
|
||||||
print(e)
|
self.logger.warning(f'Unable to setup IPASN History: {e}')
|
||||||
self.ipasnhistory = None
|
self.ipasnhistory = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -195,7 +195,7 @@ def load_cookies(cookie_pseudofile: Optional[Union[BufferedIOBase, str, bytes]]=
|
||||||
to_add = cookie
|
to_add = cookie
|
||||||
to_return.append(to_add)
|
to_return.append(to_add)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f'Unable to load the cookie file: {e}')
|
logger.warning(f'Unable to load the cookie file: {e} - {cookies}')
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue