Makes logging unified
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
[clojure.data.csv :as csv]
|
||||
[clojure.java.io :as io]
|
||||
[clojure.string :as str]
|
||||
[clojure.tools.logging :as log]
|
||||
[auto-ap.logging :as alog]
|
||||
[config.core :refer [env]]))
|
||||
|
||||
(defn line->id [{:keys [source id client-code]}]
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
(defn bulk-journal-import [args]
|
||||
(let [{:keys [ledger-url]} args
|
||||
_ (log/info "importing ledger from" ledger-url)
|
||||
_ (alog/info ::importing :url ledger-url)
|
||||
csv-stream (s3->csv ledger-url)
|
||||
import-rows (csv->graphql-rows csv-stream)]
|
||||
(import-ledger {:id {:user/name "Bulk-import" :user/role "admin"}}
|
||||
|
||||
Reference in New Issue
Block a user