Skip to content

Commit

Permalink
fix: make logger output the response as the payload instead of the re…
Browse files Browse the repository at this point in the history
…quest
  • Loading branch information
gregmundy committed Sep 6, 2020
1 parent 3f160a2 commit b37b5db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions matching/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ def after_request(response):
'status': response.status,
'content_length': response.content_length,
'user_agent': str(request.user_agent),
'payload': {
'last_name': request.json['last_name'] if 'last_name' in request.json else '',
'gender_id': request.json['gender_id'] if 'gender_id' in request.json else ''
}
'payload': response.json
}
if info['status_code'] >= 200 and info['status_code'] < 300:
logger.info(info)
Expand Down

0 comments on commit b37b5db

Please sign in to comment.