0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 00:19:07 -05:00

Disable excesive logging of some modules.

This commit is contained in:
Andrey Antukh 2021-06-02 11:27:22 +02:00
parent a6de4e3742
commit 9f034c7e7e
2 changed files with 4 additions and 4 deletions

View file

@ -140,10 +140,13 @@
(when-let [[reason batch] (a/<! input)] (when-let [[reason batch] (a/<! input)]
(let [result (a/<! (update-sessions cfg batch))] (let [result (a/<! (update-sessions cfg batch))]
(mcnt :inc) (mcnt :inc)
(if (ex/exception? result) (cond
(ex/exception? result)
(l/error :task "updater" (l/error :task "updater"
:hint "unexpected error on update sessions" :hint "unexpected error on update sessions"
:cause result) :cause result)
(= :size reason)
(l/debug :task "updater" (l/debug :task "updater"
:action "update sessions" :action "update sessions"
:reason (name reason) :reason (name reason)

View file

@ -81,9 +81,6 @@
:init []})] :init []})]
(a/go-loop [] (a/go-loop []
(when-let [[type events] (a/<! buffer)] (when-let [[type events] (a/<! buffer)]
(l/debug :action "persist-events (batch)"
:reason (name type)
:count (count events))
(let [res (a/<! (persist-events cfg events))] (let [res (a/<! (persist-events cfg events))]
(when (ex/exception? res) (when (ex/exception? res)
(l/error :hint "error on persiting events" (l/error :hint "error on persiting events"