diff --git a/src/taoensso/timbre.clj b/src/taoensso/timbre.clj index 487f60a..3b935b4 100644 --- a/src/taoensso/timbre.clj +++ b/src/taoensso/timbre.clj @@ -6,6 +6,18 @@ (:import [java.util Date Locale] [java.text SimpleDateFormat])) +;;;; Encore version check + +(let [min-encore-version 1.21] ; Let's get folks on newer versions here + (if-let [assert! (ns-resolve 'taoensso.encore 'assert-min-encore-version)] + (assert! min-encore-version) + (throw + (ex-info + (format + "Insufficient com.taoensso/encore version (< %s). You may have a Leiningen dependency conflict (see http://goo.gl/qBbLvC for solution)." + min-encore-version) + {:min-version min-encore-version})))) + ;;;; Public utils (defn str-println