File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 287
287
[{:keys [output-ch input-ch log-ch trace? trace-level trace-ch clock on-close]
288
288
:or {clock (java.time.Clock/systemDefaultZone )
289
289
on-close (constantly nil )}}]
290
- (let [trace-level (or trace-level
291
- (when (or trace? trace-ch) " verbose" )
292
- " off" )]
290
+ (let [; ; before defaulting trace-ch, so that default is "off"
291
+ tracer (trace/tracer-for-level (or trace-level
292
+ (when (or trace? trace-ch) " verbose" )
293
+ " off" ))
294
+ log-ch (or log-ch (async/chan (async/sliding-buffer 20 )))
295
+ trace-ch (or trace-ch (async/chan (async/sliding-buffer 20 )))]
293
296
(map->ChanServer
294
297
{:output-ch output-ch
295
298
:input-ch input-ch
296
- :log-ch ( or log-ch ( async/chan ( async/sliding-buffer 20 )))
297
- :trace-ch ( or trace-ch ( async/chan ( async/sliding-buffer 20 )))
298
- :tracer* (atom ( trace/ tracer-for-level trace-level) )
299
+ :log-ch log-ch
300
+ :trace-ch trace-ch
301
+ :tracer* (atom tracer)
299
302
:clock clock
300
303
:on-close on-close
301
304
:request-id* (atom 0 )
You can’t perform that action at this time.
0 commit comments