Use Throwable as Postal appender subject when no other args given

This commit is contained in:
Peter Taoussanis 2013-07-22 22:35:07 +07:00
parent ddd9e18d8e
commit ce4c9c34de
1 changed files with 1 additions and 1 deletions

View File

@ -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")))))))})