Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,7 @@ withTracerOutputTo :: | |
IO a | ||
withTracerOutputTo hdl namespace action = do | ||
msgQueue <- newTBQueueIO @_ @(Envelope msg) defaultQueueSize | ||
withAsync (writeLogs msgQueue) $ \_ -> | ||
withAsync (writeLogs msgQueue `finally` flushLogs msgQueue) $ \_ -> | ||
action (tracer msgQueue) `finally` flushLogs msgQueue | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
v0d1ch
Author
Contributor
|
||
where | ||
tracer queue = | ||
|
@v0d1ch Have you tried with only the upper
finally
?