mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-17 09:51:12 +00:00
[fix] :trace level JS console logging
Some checks are pending
Clj tests / tests (21, ubuntu-latest) (push) Waiting to run
Clj tests / tests (17, ubuntu-latest) (push) Waiting to run
Clj tests / tests (19, 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 (21, ubuntu-latest) (push) Waiting to run
Clj tests / tests (17, ubuntu-latest) (push) Waiting to run
Clj tests / tests (19, 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
`js/console.trace` was being misused here and is actually intended for stacktrace printing, NOT trace-level output.
This commit is contained in:
parent
1bcd46adf3
commit
b2a8b66cc0
1 changed files with 2 additions and 2 deletions
|
|
@ -142,14 +142,14 @@
|
||||||
#?(:cljs
|
#?(:cljs
|
||||||
(defn js-console-logger
|
(defn js-console-logger
|
||||||
"Returns JavaScript console logger to match given signal level:
|
"Returns JavaScript console logger to match given signal level:
|
||||||
`:trace` -> `js/console.trace`,
|
`:debug` -> `js/console.debug`,
|
||||||
`:error` -> `js/console.error`, etc.
|
`:error` -> `js/console.error`, etc.
|
||||||
|
|
||||||
Defaults to `js.console.log` for unmatched signal levels.
|
Defaults to `js.console.log` for unmatched signal levels.
|
||||||
NB: assumes that `js/console` exists, handler constructors should check first!"
|
NB: assumes that `js/console` exists, handler constructors should check first!"
|
||||||
[level]
|
[level]
|
||||||
(case level
|
(case level
|
||||||
:trace js/console.trace
|
:trace js/console.debug
|
||||||
:debug js/console.debug
|
:debug js/console.debug
|
||||||
:info js/console.info
|
:info js/console.info
|
||||||
:warn js/console.warn
|
:warn js/console.warn
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue