Skip to content

Instantly share code, notes, and snippets.

@kevinmmartins
Last active October 2, 2019 17:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinmmartins/f832c21215bb51cea73b8fdd28f6d88d to your computer and use it in GitHub Desktop.
Save kevinmmartins/f832c21215bb51cea73b8fdd28f6d88d to your computer and use it in GitHub Desktop.
Log Connexion request body
import connexion
from flask import request
app = connexion.App(__name__, specification_dir="./swagger/")
@app.app.before_request
def log_request_info():
print('Body: %s', request.get_data())
logger.info('Body: %s', request.get_data())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment