Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Auerbach committed May 23, 2017
1 parent d98f65e commit 8876e03
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions optimizely/event_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ def dispatch_event(event):
Args:
event: Object holding information about the request to be dispatched to the Optimizely backend.
"""
#print "event here hi", event.params
print "dumping", json.dumps(event.params)

try:
if event.http_verb == enums.HTTPVerbs.GET:
requests.get(event.url, params=event.params, timeout=REQUEST_TIMEOUT)
elif event.http_verb == enums.HTTPVerbs.POST:
print "in here 2"
requests.post(event.url, data=json.dumps(event.params), headers=event.headers, timeout=REQUEST_TIMEOUT)
except request_exception.RequestException as error:
logging.error('Dispatch event failed. Error: %s' % str(error))

0 comments on commit 8876e03

Please sign in to comment.