class ActionDispatch::DebugExceptions

def log_array(logger, lines, request)

def log_array(logger, lines, request)
  return if lines.empty?
  level = request.get_header("action_dispatch.debug_exception_log_level")
  if logger.formatter && logger.formatter.respond_to?(:tags_text)
    logger.add(level, lines.join("\n#{logger.formatter.tags_text}"))
  else
    logger.add(level, lines.join("\n"))
  end
end