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:
Peter Taoussanis 2012-05-30 13:35:40 +07:00
parent 26d9f6fb14
commit da60e78bbe
1 changed files with 2 additions and 1 deletions

View File

@ -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