mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
parent
ba4ef66cdc
commit
7f16a79af5
2 changed files with 14 additions and 2 deletions
|
@ -341,7 +341,7 @@
|
|||
(map :content)
|
||||
first)))
|
||||
(println "******** end email" (:id email) "**********"))]
|
||||
(l/info ::l/raw out)))
|
||||
(l/raw! :info out)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; EMAIL FACTORIES
|
||||
|
|
|
@ -239,7 +239,7 @@
|
|||
#?(:clj
|
||||
(defn slf4j-log-handler
|
||||
{:no-doc true}
|
||||
[_ _ _ {:keys [::logger ::level ::props ::cause ::trace ::message]}]
|
||||
[_ _ _ {:keys [::logger ::level ::trace ::message] }]
|
||||
(when-let [logger (enabled? logger level)]
|
||||
(let [message (cond-> @message
|
||||
(some? trace)
|
||||
|
@ -307,6 +307,18 @@
|
|||
(l/set-level! logger level)))
|
||||
config)))
|
||||
|
||||
(defmacro raw!
|
||||
[level message]
|
||||
(let [cljs? (:ns &env)]
|
||||
`(do
|
||||
(~(if cljs?
|
||||
`(partial console-log-handler nil nil nil)
|
||||
`(partial slf4j-log-handler nil nil nil))
|
||||
{::logger ~(str *ns*)
|
||||
::level ~level
|
||||
::message (delay ~message)})
|
||||
nil)))
|
||||
|
||||
(defmacro info
|
||||
[& params]
|
||||
`(do
|
||||
|
|
Loading…
Reference in a new issue