From e48dea517eebf65f3f664c46c5551a3736d5638c Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Tue, 22 Dec 2015 13:49:15 +0700 Subject: [PATCH] Use encore `get-env` impln --- src/taoensso/timbre.cljx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/taoensso/timbre.cljx b/src/taoensso/timbre.cljx index e9844313..22076605 100644 --- a/src/taoensso/timbre.cljx +++ b/src/taoensso/timbre.cljx @@ -18,8 +18,8 @@ (:require-macros [taoensso.timbre :as timbre-macros :refer ()])) (if (vector? taoensso.encore/encore-version) - (enc/assert-min-encore-version [2 29 1]) - (enc/assert-min-encore-version 2.29)) + (enc/assert-min-encore-version [2 31 3]) + (enc/assert-min-encore-version 2.31)) ;;;; Config @@ -513,13 +513,7 @@ result# ; NOT subject to elision )))) -(defn- clear-meta [x] (if (meta x) (with-meta x nil) x)) -(defmacro get-env [] (let [ks (mapv clear-meta (keys &env))] `(zipmap '~ks [~@ks]))) - -(comment - (let [x :x] (get-env)) - ((fn [^long x] (get-env)) 0)) - +(defmacro get-env [] `(enc/get-env)) (defmacro log-env "Logs named &env value. Defaults to :debug logging level and \"&env\" as name."