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

Allow to send requests with Tornado`s AsyncHTTPClient #34

Merged
merged 1 commit into from
Nov 17, 2014
Merged

Allow to send requests with Tornado`s AsyncHTTPClient #34

merged 1 commit into from
Nov 17, 2014

Conversation

andrey-yantsen
Copy link
Contributor

No description provided.

@andrey-yantsen
Copy link
Contributor Author

Yay, I've broken support for Python < 3.3 :(

@brianr
Copy link
Member

brianr commented Nov 17, 2014

Thanks for the PR. We will need to maintain support for older versions of python before we can merge this though. Let me know if you'd like some suggestions...

@andrey-yantsen
Copy link
Contributor Author

Fixed. Can you please check it again?

@@ -275,6 +287,11 @@ def send_payload(payload):
elif handler == 'agent':
payload = ErrorIgnoringJSONEncoder().encode(payload)
agent_log.error(payload)
elif handler == 'tornado':
if tornado_coroutine is None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line looks unnecessary since tornado_coroutine will always be defined (line 83)... right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, confused TornadoAsyncHTTPClient with tornado_coroutine

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that makes more sense.

@brianr
Copy link
Member

brianr commented Nov 17, 2014

See that one comment on the latest diff. The rest looks great.

@andrey-yantsen
Copy link
Contributor Author

Fixed again :) Also i've squashed all into 1 commit.

@brianr
Copy link
Member

brianr commented Nov 17, 2014

Looks great, thanks! Will merge once the travis build runs and passes.

@andrey-yantsen
Copy link
Contributor Author

Wow, thank you. Looking forward to see this commit in next release :)

brianr added a commit that referenced this pull request Nov 17, 2014
Allow to send requests with Tornado's AsyncHTTPClient
@brianr brianr merged commit 4f27a48 into rollbar:master Nov 17, 2014
@brianr
Copy link
Member

brianr commented Nov 18, 2014

Pushed to pypi in 0.9.1. Thanks again!

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.

2 participants