You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elasticgraph-graphql/lib/elastic_graph/graphql/query_executor.rb
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ def execute(
65
65
66
66
unlessresult.to_h.fetch("errors",[]).empty?
67
67
@logger.error<<~EOS
68
-
Query #{query.operation_name}[1] for client #{client.description} resulted in errors[2].
68
+
Query #{query.selected_operation_name}[1] for client #{client.description} resulted in errors[2].
69
69
70
70
[1] #{full_description_of(query)}
71
71
@@ -79,7 +79,7 @@ def execute(
79
79
# returns `nil` on an invalid query, and I don't want to risk leaking PII by logging the raw query string, so
80
80
# we don't log any form of the query in that case.
81
81
ifduration > @slow_query_threshold_ms
82
-
@logger.warn"Query #{query.operation_name} for client #{client.description} with shard routing values " \
82
+
@logger.warn"Query #{query.selected_operation_name} for client #{client.description} with shard routing values " \
83
83
"#{query_tracker.shard_routing_values.sort.inspect} and search index expressions #{query_tracker.search_index_expressions.sort.inspect} took longer " \
84
84
"(#{duration} ms) than the configured slow query threshold (#{@slow_query_threshold_ms} ms). " \
0 commit comments