Skip to content

Commit

Permalink
Default output fn: try use ?file when ?ns-str unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Dec 18, 2016
1 parent 4eb8433 commit a38dcef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taoensso/timbre.cljx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
([ data] (default-output-fn nil data))
([opts data] ; For partials
(let [{:keys [no-stacktrace? stacktrace-fonts]} opts
{:keys [level ?err #_vargs msg_ ?ns-str hostname_
{:keys [level ?err #_vargs msg_ ?ns-str ?file hostname_
timestamp_ ?line]} data]
(str
#+clj (force timestamp_) #+clj " "
#+clj (force hostname_) #+clj " "
(str/upper-case (name level)) " "
"[" (or ?ns-str "?") ":" (or ?line "?") "] - "
"[" (or ?ns-str ?file "?") ":" (or ?line "?") "] - "
(force msg_)
(when-not no-stacktrace?
(when-let [err ?err]
Expand Down

0 comments on commit a38dcef

Please sign in to comment.