default query for query logging

Josha von Gizycki 4 years ago
parent 8de7b1505b
commit 6ab50078b9

@ -36,7 +36,7 @@
(str (UUID/randomUUID)))
(defn butiful-query [qry]
(->> (get @query-strings (hash qry))
(->> (get @query-strings (hash qry) "unknown query")
str
cljs/trim-newline
cljs/split-lines
@ -46,7 +46,7 @@
(defn exec-query! [qry params]
(with-open [session (db/get-session @conn)]
(let [query-string (get @query-strings (hash qry))
(let [query-string (get @query-strings (hash qry) "unknown query")
query-string (-> query-string
(cljs/replace #"\n" "")
(cljs/replace #"\s+" " "))

Loading…
Cancel
Save