Makes logging unified
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
(:require
|
||||
[clj-http.client :as client]
|
||||
[clojure.data.json :as json]
|
||||
[clojure.tools.logging :as log]
|
||||
[auto-ap.logging :as alog]
|
||||
[config.core :as cfg :refer [env]]
|
||||
[auto-ap.time :as atime]))
|
||||
|
||||
@@ -62,7 +62,10 @@
|
||||
:body))
|
||||
|
||||
(defn get-transactions [access-token account-id start end]
|
||||
(log/infof "looking up transactions from %s to %s for %s" start end account-id)
|
||||
(alog/info ::searching
|
||||
:start (str start)
|
||||
:end (str end)
|
||||
:acct (str account-id))
|
||||
(-> (client/post (str base-url "/transactions/get")
|
||||
{:as :json
|
||||
:headers {"Content-Type" "application/json"}
|
||||
|
||||
Reference in New Issue
Block a user