From 9b4bb89e08195fd80cfc18af0188953d4accb714 Mon Sep 17 00:00:00 2001 From: Roland Sadowski Date: Mon, 29 Jan 2024 18:18:31 +0000 Subject: [PATCH] ldapi: pull fn call out of logging expression --- .../src/tpximpact/datahost/ldapi/store/sql.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/datahost-ld-openapi/src/tpximpact/datahost/ldapi/store/sql.clj b/datahost-ld-openapi/src/tpximpact/datahost/ldapi/store/sql.clj index af7a2733..7b71c810 100644 --- a/datahost-ld-openapi/src/tpximpact/datahost/ldapi/store/sql.clj +++ b/datahost-ld-openapi/src/tpximpact/datahost/ldapi/store/sql.clj @@ -405,10 +405,12 @@ :commit-uri ^java.net.URI (java.net.URI. commit-uid)}]] (cond (= op 1) - (log/debug (format "replay-commits/commit(append): %s" (.getPath commit-uri)) (m.release/commit-op-append tx params opts)) + (let [append-result (m.release/commit-op-append tx params opts)] + (log/debug (format "replay-commits/commit(append): %s" (.getPath commit-uri)) append-result)) (= op 2) - (log/debug (format "replay-commits/commit(retraction): %s" (.getPath commit-uri)) (m.release/commit-op-retract tx params opts)) + (let [retraction-result (m.release/commit-op-retract tx params opts)] + (log/debug (format "replay-commits/commit(retraction): %s" (.getPath commit-uri)) retraction-result)) (= op 3) (let [temp-table (str "scratch_" (java.util.UUID/randomUUID))]