Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aiohttp deprecation warning and log level #28

Merged
merged 3 commits into from
Sep 16, 2017

Conversation

Lookyan
Copy link
Contributor

@Lookyan Lookyan commented Jan 27, 2017

In current version aiohttp throws DeprecationWarning because we don't use asynchronous context managers for sessions.
As we use python 3.5, I think it's ok to use them.
And also I fixed logging levels for some errors. I think it's a common error when proxy broker receives 500 HTTP code from proxy list site, because it is broken. But it is not an error of proxybroker and we should not log it with error level. I made logging these errors with lower level.

For now with these fixes, when we execute simple script from example folder we don't see any errors and get correct result.

What do you think about it, @constverum ?

@Gallaecio
Copy link

Your changes plus downgrading yaml to 0.9.3 (see aio-libs/yarl#55) fixed the proxy broker for me. Thank you very much!

This was referenced Jun 7, 2017
Adrian Chaves and others added 2 commits June 8, 2017 16:37
@vladiscripts vladiscripts mentioned this pull request Jul 23, 2017
@constverum constverum merged commit 0b15bb3 into constverum:master Sep 16, 2017
@constverum
Copy link
Owner

Good work, @Lookyan and Adrian! Thank you all, guys =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants