Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharlieablett <cablett@gitlab.com>2019-05-21 01:30:11 +0300
committercharlieablett <cablett@gitlab.com>2019-05-30 09:27:28 +0300
commitb94a17e00efc89187aefd24d388e36584cd11784 (patch)
tree9275b3be42cea3fdaddf8be5955b52e7efb44cd3 /lib/gitlab/graphql
parent2a1006416748950805294793f1bc8d6fa7435eea (diff)
Add GraphQL logging feature flag
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r--lib/gitlab/graphql/query_analyzers/logger_analyzer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/graphql/query_analyzers/logger_analyzer.rb b/lib/gitlab/graphql/query_analyzers/logger_analyzer.rb
index 2cebd739a4e..e229e66849b 100644
--- a/lib/gitlab/graphql/query_analyzers/logger_analyzer.rb
+++ b/lib/gitlab/graphql/query_analyzers/logger_analyzer.rb
@@ -7,7 +7,7 @@ module Gitlab
# Called before initializing the analyzer.
# Returns true to run this analyzer, or false to skip it.
def analyze?(query)
- true # unless there's some reason why we wouldn't log?
+ Feature.enabled?(:graphql_logging, default_enabled: true)
end
# Called before the visit.