From 6ab50078b989598259eba2b035066b3ae2c5fbbc Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Fri, 6 Mar 2020 14:10:40 +0100 Subject: [PATCH] default query for query logging --- src/wanijo/infrastructure/neo4j.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wanijo/infrastructure/neo4j.clj b/src/wanijo/infrastructure/neo4j.clj index 4423bbb..79b28e7 100644 --- a/src/wanijo/infrastructure/neo4j.clj +++ b/src/wanijo/infrastructure/neo4j.clj @@ -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+" " "))