summaryrefslogtreecommitdiff
path: root/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/graphql/query_analyzers/log_query_complexity.rb')
-rw-r--r--lib/gitlab/graphql/query_analyzers/log_query_complexity.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb b/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb
deleted file mode 100644
index d3e21946357..00000000000
--- a/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# frozen_string_literal: true
-
-module Gitlab
- module Graphql
- module QueryAnalyzers
- class LogQueryComplexity
- class << self
- def analyzer
- GraphQL::Analysis::QueryComplexity.new do |query, complexity|
- # temporary until https://gitlab.com/gitlab-org/gitlab-ce/issues/59587
- GraphqlLogger.info("[Query Complexity] #{complexity} | admin? #{query.context[:current_user]&.admin?}")
- end
- end
- end
- end
- end
- end
-end