diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 03:09:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 03:09:09 +0300 |
commit | 47ebeef9122af96dc1fcd5c8e1ca0091f62fa113 (patch) | |
tree | f140bf150d6670b734e981851070e73c270fc45f /lib/gitlab/graphql | |
parent | 06bb4eba7828ce59fde366734828458c037059b4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r-- | lib/gitlab/graphql/timeout.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/graphql/timeout.rb b/lib/gitlab/graphql/timeout.rb new file mode 100644 index 00000000000..4282c46a19e --- /dev/null +++ b/lib/gitlab/graphql/timeout.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Gitlab + module Graphql + class Timeout < GraphQL::Schema::Timeout + def handle_timeout(error, query) + Gitlab::GraphqlLogger.error(message: error.message, query: query.query_string, query_variables: query.provided_variables) + end + end + end +end |