Skip to content

Commit

Permalink
ldapi: pull fn call out of logging expression
Browse files Browse the repository at this point in the history
  • Loading branch information
rosado committed Jan 29, 2024
1 parent a25f710 commit 9b4bb89
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit 9b4bb89

Please sign in to comment.