Class: Gitlab::Graphql::Timeout

Inherits:
GraphQL::Schema::Timeout
  • Object
show all
Defined in:
lib/gitlab/graphql/timeout.rb

Instance Method Summary collapse

Instance Method Details

#handle_timeout(error, query) ⇒ Object


6
7
8
# File 'lib/gitlab/graphql/timeout.rb', line 6

def handle_timeout(error, query)
  Gitlab::GraphqlLogger.error(message: error.message, query: query.query_string, query_variables: query.provided_variables)
end