Skip to content
Snippets Groups Projects
Unverified Commit 75f669b2 authored by Alexander Solovyov's avatar Alexander Solovyov Committed by GitHub
Browse files

[cache] log query hash during calculation of eligibility (#41530)

parent 6f14f039
No related merge requests found
......@@ -107,7 +107,8 @@
min-duration-ms (:min-duration-ms strategy 0)
eligible? (and @has-rows?
(> duration-ms min-duration-ms))]
(log/infof "Query took %s to run; minimum for cache eligibility is %s; %s"
(log/infof "Query %s took %s to run; minimum for cache eligibility is %s; %s"
(i/short-hex-hash query-hash)
(u/format-milliseconds duration-ms)
(u/format-milliseconds min-duration-ms)
(if eligible? "eligible" "not eligible"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment