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.time
(:require [clj-time.core :as time]
[clj-time.format :as f]
[clojure.tools.logging :as log]))
[auto-ap.logging :as alog]))
(defn localize [d]
(time/to-time-zone d (time/time-zone-for-id "America/Los_Angeles")))
@@ -35,7 +35,7 @@
(try
(f/unparse (f/formatter format) v)
(catch Exception e
(log/warn e)
(alog/warn ::cant-unparse :error e)
nil)))
(defn unparse-local [v format]