def log_failure(host, path, params, filter, request_uuid, started_at, exception)
      code = exception.respond_to?(:http_code) ? exception.http_code : "nil"
      duration = "%.0fms" % ((Time.now - started_at) * 1000)
      ErrorTracker.log(self, "Failed <#{request_uuid}> in #{duration} | #{code} " + log_text(path, params, filter, host, exception))
      true
    end
def log_failure(host, path, params, filter, request_uuid, started_at, exception)
      code = exception.respond_to?(:http_code) ? exception.http_code : "nil"
      duration = "%.0fms" % ((Time.now - started_at) * 1000)
      ErrorTracker.log(self, "Failed <#{request_uuid}> in #{duration} | #{code} " + log_text(path, params, filter, host, exception))
      true
    end
Log request failure
 Also report it as audit entry if an instance is targeted

 @param [String] host server URL where request was attempted if known
 @param [String] path in URI for desired resource
 @param [Hash] params for request
 @param [Array] filter list of parameters whose value is to be hidden
 @param [String] request_uuid uniquely identifying request
 @param [Time] started_at time for request
 @param [Exception, String] exception or message that should be logged

 @return [TrueClass] Always return true