diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-03-25 14:17:18 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-03-25 14:43:30 +0200 |
commit | de3cb4551757df12a6ed69e4d6f3e925436fb6ca (patch) | |
tree | f6e4a09f31de065f26b210a5287790f7a5574897 /crocoite | |
parent | 1efbd6de5e788bbb424602edd6321a0cba79bb04 (diff) | |
download | crocoite-de3cb4551757df12a6ed69e4d6f3e925436fb6ca.tar.gz crocoite-de3cb4551757df12a6ed69e4d6f3e925436fb6ca.tar.bz2 crocoite-de3cb4551757df12a6ed69e4d6f3e925436fb6ca.zip |
Replace deprecated logger.warn
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/browser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crocoite/browser.py b/crocoite/browser.py index 4fe37d8..bfe5dd4 100644 --- a/crocoite/browser.py +++ b/crocoite/browser.py @@ -200,7 +200,7 @@ class SiteLoader: self.loadingFinished (item, redirect=True) self.logger.info ('redirected request {} has url {}'.format (reqId, req['url'])) else: - self.logger.warn ('request {} already exists, overwriting.'.format (reqId)) + self.logger.warning ('request {} already exists, overwriting.'.format (reqId)) item = Item (self.tab) item.setRequest (kwargs) @@ -218,7 +218,7 @@ class SiteLoader: self.logger.info ('response {} {}'.format (reqId, resp['url'])) item.setResponse (kwargs) else: - self.logger.warn ('response: ignoring scheme {}'.format (url.scheme)) + self.logger.warning ('response: ignoring scheme {}'.format (url.scheme)) def _loadingFinished (self, **kwargs): """ @@ -241,7 +241,7 @@ class SiteLoader: def _loadingFailed (self, **kwargs): reqId = kwargs['requestId'] - self.logger.warn ('failed {} {}'.format (reqId, kwargs['errorText'], kwargs.get ('blockedReason'))) + self.logger.warning ('failed {} {}'.format (reqId, kwargs['errorText'], kwargs.get ('blockedReason'))) item = self.requests.pop (reqId, None) self.loadingFailed (item) |