mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-16 09:31:11 +00:00
[fix] Timbre->Telemere appender: don't duplicate output formatting
Some checks are pending
Clj tests / tests (17, ubuntu-latest) (push) Waiting to run
Clj tests / tests (19, ubuntu-latest) (push) Waiting to run
Clj tests / tests (21, ubuntu-latest) (push) Waiting to run
Cljs tests / tests (21, ubuntu-latest) (push) Waiting to run
Graal tests / tests (17, macOS-latest) (push) Waiting to run
Graal tests / tests (17, ubuntu-latest) (push) Waiting to run
Graal tests / tests (17, windows-latest) (push) Waiting to run
Some checks are pending
Clj tests / tests (17, ubuntu-latest) (push) Waiting to run
Clj tests / tests (19, ubuntu-latest) (push) Waiting to run
Clj tests / tests (21, ubuntu-latest) (push) Waiting to run
Cljs tests / tests (21, ubuntu-latest) (push) Waiting to run
Graal tests / tests (17, macOS-latest) (push) Waiting to run
Graal tests / tests (17, ubuntu-latest) (push) Waiting to run
Graal tests / tests (17, windows-latest) (push) Waiting to run
BEFORE this commit: The Timbre->Telemere appender produced duplicate preamble output (timestamp, namespace, etc.). Both Timbre AND Telemere were adding preamble info. AFTER this commit: Now ONLY Telemere adds preamble info. Timbre's `:output-fn` is ignored.
This commit is contained in:
parent
c99fd044b4
commit
6735ec3aa1
1 changed files with 7 additions and 4 deletions
|
|
@ -190,8 +190,10 @@
|
|||
:min-level nil
|
||||
:fn
|
||||
(fn [data]
|
||||
(let [{:keys [instant level context ?err output_
|
||||
?ns-str ?file ?line ?column]} data]
|
||||
(let [{:keys [instant level context vargs #_?err #_output_
|
||||
?ns-str ?file ?line ?column]} data
|
||||
|
||||
[error msg vargs] (parse-vargs vargs)]
|
||||
|
||||
(taoensso.telemere/signal!
|
||||
{:kind :timbre
|
||||
|
|
@ -203,5 +205,6 @@
|
|||
:coords (when ?line [?line ?column])
|
||||
:file ?file ; Non-standard, goes to kvs
|
||||
|
||||
:error ?err
|
||||
:msg (force output_)})))})
|
||||
:error error
|
||||
:msg msg
|
||||
:timbre/vargs vargs})))})
|
||||
|
|
|
|||
Loading…
Reference in a new issue