mirror of https://github.com/status-im/timbre.git
Now less choosy about when to recache appenders.
* E.g. there was a problem when changing shared-appender config. The new approach is more robust. Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
This commit is contained in:
parent
26d9f6fb14
commit
da60e78bbe
|
@ -169,7 +169,8 @@
|
|||
(add-watch
|
||||
config "appender-watch"
|
||||
(fn [key ref old new]
|
||||
(when-not (= (:appenders old) (:appenders new))
|
||||
(when (not= (dissoc old :current-level)
|
||||
(dissoc new :current-level))
|
||||
(cache-appenders!))))
|
||||
|
||||
;;;; Define logging macros
|
||||
|
|
Loading…
Reference in New Issue