Skip to content

Commit a365e3b

Browse files
committed
fix: use real config path on record
1 parent 7516dd2 commit a365e3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/moclojer/components/logs.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@
7373
;; If on dev `env`, does basically nothing besides setting the min
7474
;; level. On `prod` env however, an async channel waits for log events,
7575
;; which are then sent to OpenSearch.
76-
(defrecord Logger [cfg]
76+
(defrecord Logger [config]
7777
component/Lifecycle
7878
(start [this]
79-
(let [config (:config cfg)
79+
(let [config (:config config)
8080
prod? (= (:env config) :prod)
8181
os-cfg (:opensearch config)
8282
log-ch (async/chan)

0 commit comments

Comments
 (0)