diff --git a/src/taoensso/timbre.cljx b/src/taoensso/timbre.cljx index bfe9a88..d3602f2 100644 --- a/src/taoensso/timbre.cljx +++ b/src/taoensso/timbre.cljx @@ -130,9 +130,9 @@ (defmacro with-merged-config [config & body] `(binding [*config* (enc/nested-merge *config* ~config)] ~@body)) -(defn swap-config! [f] - #+cljs (set! *config* (f *config*)) - #+clj (alter-var-root #'*config* f)) +(defn swap-config! [f & args] + #+cljs (set! *config* (apply f *config* args)) + #+clj (apply alter-var-root #'*config* f args)) (defn set-config! [m] (swap-config! (fn [_old] m))) (defn merge-config! [m] (swap-config! (fn [old] (enc/nested-merge old m))))