lint fixes

This commit is contained in:
Travis Shears 2025-08-14 19:14:39 +02:00
parent 10a374c0c8
commit 0cfefc5f04

View file

@ -4,32 +4,32 @@
(defrecord TelmereLogger [logger-name] (defrecord TelmereLogger [logger-name]
pedestal-log/LoggerSource pedestal-log/LoggerSource
(-trace [this body] (-trace [_this body]
(tel/log! {:level :trace :id logger-name} body)) (tel/log! {:level :trace :id logger-name} body))
(-trace [this body throwable] (-trace [_this body throwable]
(tel/log! {:level :trace :id logger-name :error throwable} body)) (tel/log! {:level :trace :id logger-name :error throwable} body))
(-debug [this body] (-debug [_this body]
(tel/log! {:level :debug :id logger-name} body)) (tel/log! {:level :debug :id logger-name} body))
(-debug [this body throwable] (-debug [_this body throwable]
(tel/log! {:level :debug :id logger-name :error throwable} body)) (tel/log! {:level :debug :id logger-name :error throwable} body))
(-info [this body] (-info [_this body]
(tel/log! {:level :info :id logger-name} body)) (tel/log! {:level :info :id logger-name} body))
(-info [this body throwable] (-info [_this body throwable]
(tel/log! {:level :info :id logger-name :error throwable} body)) (tel/log! {:level :info :id logger-name :error throwable} body))
(-warn [this body] (-warn [_this body]
(tel/log! {:level :warn :id logger-name} body)) (tel/log! {:level :warn :id logger-name} body))
(-warn [this body throwable] (-warn [_this body throwable]
(tel/log! {:level :warn :id logger-name :error throwable} body)) (tel/log! {:level :warn :id logger-name :error throwable} body))
(-error [this body] (-error [_this body]
(tel/log! {:level :error :id logger-name} body)) (tel/log! {:level :error :id logger-name} body))
(-error [this body throwable] (-error [_this body throwable]
(tel/log! {:level :error :id logger-name :error throwable} body)) (tel/log! {:level :error :id logger-name :error throwable} body))
(-level-enabled? [this level-key] (-level-enabled? [_this level-key]
;; Telmere doesn't have a direct level check, so we'll assume all levels are enabled ;; Telmere doesn't have a direct level check, so we'll assume all levels are enabled
;; You can customize this based on your Telmere configuration ;; You can customize this based on your Telmere configuration
(contains? #{:trace :debug :info :warn :error} level-key))) (contains? #{:trace :debug :info :warn :error} level-key)))