Makes logging unified
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user