diff options
author | charlieablett <cablett@gitlab.com> | 2019-04-30 11:30:15 +0300 |
---|---|---|
committer | charlieablett <cablett@gitlab.com> | 2019-05-30 09:27:28 +0300 |
commit | 1f37aed1c917260eefda63a18d3a9af91c4a1abb (patch) | |
tree | a6912284b0984fb50a487a2e23ce6fbc0c3905d6 /lib/gitlab/graphql | |
parent | e33cab9f20971aa1b8076a4fef42e5022abe115f (diff) |
New logfile for graphql queries
Specify dedicated logfile and logger class for GraphQL queries. Move
complexity analyzer to a dedicated class.
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r-- | lib/gitlab/graphql/query_analyzers/log_query_complexity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb b/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb index 95db130dbfc..d3e21946357 100644 --- a/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb +++ b/lib/gitlab/graphql/query_analyzers/log_query_complexity.rb @@ -8,7 +8,7 @@ module Gitlab def analyzer GraphQL::Analysis::QueryComplexity.new do |query, complexity| # temporary until https://gitlab.com/gitlab-org/gitlab-ce/issues/59587 - Rails.logger.info("[GraphQL Query Complexity] #{complexity} | admin? #{query.context[:current_user]&.admin?}") + GraphqlLogger.info("[Query Complexity] #{complexity} | admin? #{query.context[:current_user]&.admin?}") end end end |