Final tweak to query logic

This commit is contained in:
2023-09-06 07:05:05 -07:00
parent 6ad13b0e35
commit 4fe048f9c7
2 changed files with 4 additions and 2 deletions

View File

@@ -865,7 +865,8 @@
(statsd/time! [(str "query.graphql.time" ) {:tags #{(str "query:" (query-name q))}}]
(mu/with-context {:query-string q :user id}
(lc/with-context {:query q}
(log/info "executing query name" (query-name q))
(alog/info ::executing-query
:query-name (query-name q))
(try
(let [[result time] (time-it (simplify (execute schema q (dissoc v
:clients) {:id id

View File

@@ -265,6 +265,7 @@
(wrap-guess-route)
(wrap-hydrate-clients)
(wrap-store-client-in-session)
(wrap-logging)
(wrap-gunzip-jwt)
(wrap-authorization auth-backend)
(wrap-authentication auth-backend
@@ -282,5 +283,5 @@
(wrap-params)
(mp/wrap-multipart-params)
(wrap-edn-params)
(wrap-logging)))
))