fix: remove print, replace with logging

pull/564/head
Raphaël Vinot 2022-12-27 01:55:18 +01:00
parent 407b63ec3b
commit 01b9f8d1be
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class CapturesIndex(Mapping):
self.ipasnhistory = None
except Exception as e:
# Unable to setup IPASN History
print(e)
self.logger.warning(f'Unable to setup IPASN History: {e}')
self.ipasnhistory = None
@property

View File

@ -195,7 +195,7 @@ def load_cookies(cookie_pseudofile: Optional[Union[BufferedIOBase, str, bytes]]=
to_add = cookie
to_return.append(to_add)
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