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

@@ -8,7 +8,7 @@
[clojure.java.shell :as sh]
[clojure.set :as set]
[clojure.string :as str]
[clojure.tools.logging :as log]))
[auto-ap.logging :as alog]))
(def last-text (atom nil))
@@ -18,7 +18,8 @@
(defn extract-template
([text template]
(log/info "Template was determined to be" template)
(alog/info ::template-determined
:template (str template))
(if (:multi template)
(mapcat
@@ -41,7 +42,7 @@
(assoc result k (try
(u/parse-value value-parser parser-params value)
(catch Exception e
(log/warn e))))))
(alog/warn ::cant-parse-value :error e :raw value))))))
{:vendor-code (:vendor template)
:text text
:full-text full-text}))])))