Makes logging unified

This commit is contained in:
2023-10-30 12:35:18 -07:00
parent f0a7c378f7
commit 930b900849
44 changed files with 485 additions and 555 deletions

View File

@@ -1,7 +1,7 @@
(ns auto-ap.import.common
(:require
[auto-ap.datomic :refer [conn pull-ref random-tempid]]
[clojure.tools.logging :as log]
[auto-ap.logging :as alog]
[datomic.api :as dc]))
(defn bank-account->integration-id [bank-account]
@@ -25,5 +25,5 @@
:integration-status/state :integration-state/failed
:integration-status/last-attempt (java.util.Date.)
:integration-status/message (.getMessage e)}}])
(log/warn e)
(alog/warn ::integration-failed :error e)
nil)))