From 853807df4c1be503f52ee49babe73d44a42a7e19 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Mon, 22 Jul 2013 22:21:49 +0700 Subject: [PATCH] Housekeeping --- src/taoensso/timbre.clj | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/taoensso/timbre.clj b/src/taoensso/timbre.clj index 6843076..8997fd1 100644 --- a/src/taoensso/timbre.clj +++ b/src/taoensso/timbre.clj @@ -389,14 +389,11 @@ (def-loggers) ; Actually define a logger for each logging level -(defmacro log-errors [& body] - `(try ~@body (catch Exception e# (error e#)))) - +(defmacro log-errors [& body] `(try ~@body (catch Exception e# (error e#)))) (defmacro log-and-rethrow-errors [& body] `(try ~@body (catch Exception e# (error e#) (throw e#)))) -(defmacro logged-future [& body] - `(future (log-errors ~@body))) +(defmacro logged-future [& body] `(future (log-errors ~@body))) (comment (log-errors (/ 0)) (log-and-rethrow-errors (/ 0))