Fix regression: spit appender should print newlines (ristkari, ag0rex)

This commit is contained in:
Peter Taoussanis 2014-01-30 15:50:13 +07:00
parent 09c2d06031
commit a995a7baf0
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@
:min-level nil :enabled? false :async? false :rate-limit nil
:fn (fn [{:keys [ap-config output]}] ; Can use any appender args
(when-let [filename (:spit-filename ap-config)]
(try (spit filename output :append true)
(try (spit filename (str output "\n") :append true)
(catch java.io.IOException _))))}}})
(utils/defonce* config (atom example-config))