Commit f10d3d0
committed
remove crit! logging from ListenerClosed event on Ok() (#4821)
## Issue Addressed
Since adding Quic support on #4577, and due to `quinn`s api nature LH now triggers the [`ListenerClosed`](https://docs.rs/libp2p/0.52.3/libp2p/swarm/struct.ListenerClosed.html) event.. @michaelsproul noticed we are logging this event as `crit!` independently of the reason. This PR matches the reason, logging with `debug!` and `error!` (instead of `crit!`) according to its `Result`
## Additional Info
LH will still log `crit!` until libp2p/rust-libp2p#4621 has been merged1 parent 18f3edf commit f10d3d0
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
1605 | | - | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
1606 | 1613 | | |
1607 | 1614 | | |
1608 | 1615 | | |
| |||
0 commit comments