old_contents: from flask import request
  from flask import current_app
  
  def main():
      msg = "%s %s:\n---HEADERS---\n%s\n--BODY--\n%s\n-----\n" % (request.method, request.path, request.headers, request.get_data())
      current_app.logger.info(msg)
  
      return msg
  
new_contents: from flask import request
  from flask import current_app
  
  def main():
      current_app.logger.info("Received request")
      msg = "---HEADERS---\n%s\n--BODY--\n%s\n-----\n" % (request.headers, request.get_data())
      return msg
  
subject: Modify example a bit