I'm trying to log post requests body on a flask app, like so:
app.logger.error("BODY: %s" % request.data )
I do this because I suspect sometimes I get a malformed JSON object on the POST. The problem I'm seeing is that the logs contain a truncated request body - it just seems cut in the middle..
I can't put a log excerpt because it's sensitive data.. Why is the request truncated? Am I doing this wrong?
Thanks