You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lightning-liquidity/src/lsps0/client.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ where
109
109
false,
110
110
"Client handler received LSPS0 request message. This should never happen."
111
111
);
112
-
Err(LightningError{err:format!("Client handler received LSPS0 request message from node {:?}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
112
+
Err(LightningError{err:format!("Client handler received LSPS0 request message from node {}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
Copy file name to clipboardExpand all lines: lightning-liquidity/src/lsps0/service.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ impl LSPSProtocolMessageHandler for LSPS0ServiceHandler {
73
73
false,
74
74
"Service handler received LSPS0 response message. This should never happen."
75
75
);
76
-
Err(LightningError{err:format!("Service handler received LSPS0 response message from node {:?}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
76
+
Err(LightningError{err:format!("Service handler received LSPS0 response message from node {}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
Copy file name to clipboardExpand all lines: lightning-liquidity/src/lsps2/client.rs
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -227,7 +227,7 @@ where
227
227
None => {
228
228
returnErr(LightningError{
229
229
err:format!(
230
-
"Received get_info response from unknown peer: {:?}",
230
+
"Received get_info response from unknown peer: {}",
231
231
counterparty_node_id
232
232
),
233
233
action:ErrorAction::IgnoreAndLog(Level::Debug),
@@ -275,7 +275,7 @@ where
275
275
Err(lightning_error)
276
276
},
277
277
None => {
278
-
returnErr(LightningError{err:format!("Received error response for a get_info request from an unknown counterparty ({:?})",counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
278
+
returnErr(LightningError{err:format!("Received error response for a get_info request from an unknown counterparty {}",counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
279
279
},
280
280
}
281
281
}
@@ -321,7 +321,7 @@ where
321
321
None => {
322
322
returnErr(LightningError{
323
323
err:format!(
324
-
"Received buy response from unknown peer: {:?}",
324
+
"Received buy response from unknown peer: {}",
325
325
counterparty_node_id
326
326
),
327
327
action:ErrorAction::IgnoreAndLog(Level::Debug),
@@ -363,7 +363,13 @@ where
363
363
Err(lightning_error)
364
364
},
365
365
None => {
366
-
returnErr(LightningError{err:format!("Received error response for a buy request from an unknown counterparty ({:?})", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
366
+
returnErr(LightningError{
367
+
err:format!(
368
+
"Received error response for a buy request from an unknown counterparty {}",
369
+
counterparty_node_id
370
+
),
371
+
action:ErrorAction::IgnoreAndLog(Level::Debug),
372
+
});
367
373
},
368
374
}
369
375
}
@@ -400,7 +406,7 @@ where
400
406
false,
401
407
"Client handler received LSPS2 request message. This should never happen."
402
408
);
403
-
Err(LightningError{err:format!("Client handler received LSPS2 request message from node {:?}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
409
+
Err(LightningError{err:format!("Client handler received LSPS2 request message from node {}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
Copy file name to clipboardExpand all lines: lightning-liquidity/src/lsps2/service.rs
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -696,7 +696,7 @@ where
696
696
}
697
697
},
698
698
None => Err(APIError::APIMisuseError{
699
-
err:format!("No state for the counterparty exists: {:?}", counterparty_node_id),
699
+
err:format!("No state for the counterparty exists: {}", counterparty_node_id),
700
700
}),
701
701
}
702
702
}
@@ -752,7 +752,7 @@ where
752
752
}
753
753
},
754
754
None => Err(APIError::APIMisuseError{
755
-
err:format!("No state for the counterparty exists: {:?}", counterparty_node_id),
755
+
err:format!("No state for the counterparty exists: {}", counterparty_node_id),
756
756
}),
757
757
}
758
758
}
@@ -822,10 +822,7 @@ where
822
822
},
823
823
None => {
824
824
returnErr(APIError::APIMisuseError{
825
-
err:format!(
826
-
"No state for the counterparty exists: {:?}",
827
-
counterparty_node_id
828
-
),
825
+
err:format!("No state for the counterparty exists: {}", counterparty_node_id),
829
826
})
830
827
},
831
828
};
@@ -1731,7 +1728,7 @@ where
1731
1728
false,
1732
1729
"Service handler received LSPS2 response message. This should never happen."
1733
1730
);
1734
-
Err(LightningError{err:format!("Service handler received LSPS2 response message from node {:?}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
1731
+
Err(LightningError{err:format!("Service handler received LSPS2 response message from node {}. This should never happen.", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)})
returnErr(LightningError{err:format!("Received LSPS0 request message without LSPS0 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
683
+
returnErr(LightningError{err:format!("Received LSPS0 request message without LSPS0 service handler configured. From node {}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
704
+
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node {}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
705
705
},
706
706
}
707
707
#[cfg(not(lsps1_service))]
708
-
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
708
+
returnErr(LightningError{err:format!("Received LSPS1 request message without LSPS1 service handler configured. From node {}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
returnErr(LightningError{err:format!("Received LSPS2 request message without LSPS2 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
726
+
returnErr(LightningError{err:format!("Received LSPS2 request message without LSPS2 service handler configured. From node {}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
returnErr(LightningError{err:format!("Received LSPS5 request message without LSPS5 service handler configured. From node = {:?}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
769
+
returnErr(LightningError{err:format!("Received LSPS5 request message without LSPS5 service handler configured. From node {}", sender_node_id),action:ErrorAction::IgnoreAndLog(Level::Debug)});
0 commit comments