mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
📎 Change log levels on webhooks loggers ns
This commit is contained in:
parent
34534c924f
commit
f18be26054
1 changed files with 7 additions and 7 deletions
|
@ -136,11 +136,11 @@
|
||||||
"application/transit+json" (t/encode-str event)
|
"application/transit+json" (t/encode-str event)
|
||||||
"application/x-www-form-urlencoded" (uri/map->query-string event))]
|
"application/x-www-form-urlencoded" (uri/map->query-string event))]
|
||||||
|
|
||||||
(l/debug :hint "run webhook"
|
(l/dbg :hint "run webhook"
|
||||||
:event-name (:name event)
|
:event-name (:name event)
|
||||||
:webhook-id (:id whook)
|
:webhook-id (:id whook)
|
||||||
:webhook-uri (:uri whook)
|
:webhook-uri (:uri whook)
|
||||||
:webhook-mtype (:mtype whook))
|
:webhook-mtype (:mtype whook))
|
||||||
|
|
||||||
(let [req {:uri (:uri whook)
|
(let [req {:uri (:uri whook)
|
||||||
:headers {"content-type" (:mtype whook)
|
:headers {"content-type" (:mtype whook)
|
||||||
|
@ -158,8 +158,8 @@
|
||||||
(report-delivery! whook req nil err)
|
(report-delivery! whook req nil err)
|
||||||
(update-webhook! whook err)
|
(update-webhook! whook err)
|
||||||
(when (= err "unknown")
|
(when (= err "unknown")
|
||||||
(l/error :hint "unknown error on webhook request"
|
(l/err :hint "unknown error on webhook request"
|
||||||
:cause cause))))))))))
|
:cause cause))))))))))
|
||||||
|
|
||||||
(defn interpret-response
|
(defn interpret-response
|
||||||
[{:keys [status] :as response}]
|
[{:keys [status] :as response}]
|
||||||
|
|
Loading…
Reference in a new issue