From 0dc4951db73eca38951a29dd8c751e60d799b4e4 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Sun, 14 Apr 2013 16:30:19 +0700 Subject: [PATCH] Fix EvalReader exception when *read-eval* is false (thanks ummels) --- src/taoensso/timbre.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/taoensso/timbre.clj b/src/taoensso/timbre.clj index a6a71ad..17b483b 100644 --- a/src/taoensso/timbre.clj +++ b/src/taoensso/timbre.clj @@ -293,11 +293,11 @@ ;;;; Define logging macros -(defmacro logging-enabled? +(defn logging-enabled? "Returns true when current logging level is sufficient and current namespace is unfiltered." [level] - `(and (sufficient-level? ~level) (@ns-filter-cache ~*ns*))) + (and (sufficient-level? level) (@ns-filter-cache *ns*))) (defmacro log* "Prepares given arguments for, and then dispatches to all relevant @@ -313,7 +313,7 @@ {:level ~level :error? (error-level? ~level) :instant (Date.) - :ns (str ~*ns*) + :ns ~(str *ns*) :message (if has-throwable?# (or (first xs#) x1#) x1#) :more (if has-throwable?# (conj (vec (rest xs#))