class Puma::LogWriter

def parse_error(error, req)

and +req+ the request.
+error+ a parsing exception,
An HTTP parse error has occurred.
def parse_error(error, req)
  @error_logger.info(error: error, req: req, text: 'HTTP parse error, malformed request')
end