Final tweak to query logic
This commit is contained in:
@@ -865,7 +865,8 @@
|
|||||||
(statsd/time! [(str "query.graphql.time" ) {:tags #{(str "query:" (query-name q))}}]
|
(statsd/time! [(str "query.graphql.time" ) {:tags #{(str "query:" (query-name q))}}]
|
||||||
(mu/with-context {:query-string q :user id}
|
(mu/with-context {:query-string q :user id}
|
||||||
(lc/with-context {:query q}
|
(lc/with-context {:query q}
|
||||||
(log/info "executing query name" (query-name q))
|
(alog/info ::executing-query
|
||||||
|
:query-name (query-name q))
|
||||||
(try
|
(try
|
||||||
(let [[result time] (time-it (simplify (execute schema q (dissoc v
|
(let [[result time] (time-it (simplify (execute schema q (dissoc v
|
||||||
:clients) {:id id
|
:clients) {:id id
|
||||||
|
|||||||
@@ -265,6 +265,7 @@
|
|||||||
(wrap-guess-route)
|
(wrap-guess-route)
|
||||||
(wrap-hydrate-clients)
|
(wrap-hydrate-clients)
|
||||||
(wrap-store-client-in-session)
|
(wrap-store-client-in-session)
|
||||||
|
(wrap-logging)
|
||||||
(wrap-gunzip-jwt)
|
(wrap-gunzip-jwt)
|
||||||
(wrap-authorization auth-backend)
|
(wrap-authorization auth-backend)
|
||||||
(wrap-authentication auth-backend
|
(wrap-authentication auth-backend
|
||||||
@@ -282,5 +283,5 @@
|
|||||||
(wrap-params)
|
(wrap-params)
|
||||||
(mp/wrap-multipart-params)
|
(mp/wrap-multipart-params)
|
||||||
(wrap-edn-params)
|
(wrap-edn-params)
|
||||||
(wrap-logging)))
|
))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user