Skip to content

Commit

Permalink
Merge pull request #360 from rollbar/pawel/added_twisted_framework
Browse files Browse the repository at this point in the history
populated framework for python twisted server
  • Loading branch information
pawelsz-rb authored Jan 25, 2021
2 parents fdd64d9 + c60bc9e commit 2b6b770
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rollbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,11 @@ def send_payload(payload, access_token):
if payload is False:
return

payload_str = _serialize_payload(payload)

handler = SETTINGS.get('handler')
if handler == 'twisted':
payload['data']['framework'] = 'twisted'

payload_str = _serialize_payload(payload)
if handler == 'blocking':
_send_payload(payload_str, access_token)
elif handler == 'agent':
Expand Down

0 comments on commit 2b6b770

Please sign in to comment.