We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7516dd2 commit a365e3bCopy full SHA for a365e3b
src/com/moclojer/components/logs.clj
@@ -73,10 +73,10 @@
73
;; If on dev `env`, does basically nothing besides setting the min
74
;; level. On `prod` env however, an async channel waits for log events,
75
;; which are then sent to OpenSearch.
76
-(defrecord Logger [cfg]
+(defrecord Logger [config]
77
component/Lifecycle
78
(start [this]
79
- (let [config (:config cfg)
+ (let [config (:config config)
80
prod? (= (:env config) :prod)
81
os-cfg (:opensearch config)
82
log-ch (async/chan)
0 commit comments