From ce4c9c34de526d2ac82e1d6b0be6df2b76f039a8 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Mon, 22 Jul 2013 22:35:07 +0700 Subject: [PATCH] Use Throwable as Postal appender subject when no other args given --- src/taoensso/timbre/appenders/postal.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taoensso/timbre/appenders/postal.clj b/src/taoensso/timbre/appenders/postal.clj index 9971d41..dfcc7bc 100644 --- a/src/taoensso/timbre/appenders/postal.clj +++ b/src/taoensso/timbre/appenders/postal.clj @@ -17,6 +17,6 @@ (let [[subject & body] args] (postal/send-message (assoc postal-config - :subject (str prefix " - " subject) + :subject (str prefix " - " (or subject throwable)) :body (str (str/join \space body) (timbre/stacktrace throwable "\n")))))))}) \ No newline at end of file