The unwrap call here can fail when the lock got poisoned because of a panic, causing a panic while unwinding
|
let bufs = &mut *self.bufs.lock().unwrap(); |
The application doesn't abort when using a different tracing subscriber.
I think a fix here could be to not print to buf but otherwise run the logic "as normal"