@@ -108,7 +108,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
108
108
SwarmEvent :: NewListenAddr { address, .. } => {
109
109
info!( %address, "\x1b [34mswarm\x1b [0m Listening on address" ) ;
110
110
}
111
- event => panic !( "{event:?}" ) ,
111
+ event => info !( "unexpected: {event:?}" ) ,
112
112
}
113
113
}
114
114
_ = tokio:: time:: sleep( Duration :: from_secs( 1 ) ) => {
@@ -142,7 +142,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
142
142
info ! ( address=%observed_addr, "\x1b [33mrelay\x1b [0m Relay told us our observed address" ) ;
143
143
learned_observed_addr = true ;
144
144
}
145
- event => panic ! ( "{event:?}" ) ,
145
+ event => info ! ( "unexpected: {event:?}" ) ,
146
146
}
147
147
148
148
if learned_observed_addr && told_relay_observed_addr {
@@ -221,7 +221,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
221
221
SwarmEvent :: OutgoingConnectionError { peer_id, error, .. } => {
222
222
info ! ( peer=?peer_id, "\x1b [34mswarm\x1b [0m Outgoing connection failed: {error}" ) ;
223
223
}
224
- _ => { }
224
+ event => info ! ( ?event , " \x1b [34mswarm \x1b [0m" ) ,
225
225
} ;
226
226
}
227
227
}
0 commit comments