Skip to content

Commit 0019584

Browse files
committed
f Make logging more consistent
1 parent cf8c802 commit 0019584

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/liquidity.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,11 @@ where
960960
channel_id,
961961
counterparty_node_id,
962962
) {
963-
log_error!(self.logger, "Errored processing ChannelReady event: {:?}", e);
963+
log_error!(
964+
self.logger,
965+
"LSPS2 service failed to handle ChannelReady event: {:?}",
966+
e
967+
);
964968
}
965969
}
966970
}
@@ -976,15 +980,23 @@ where
976980
expected_outbound_amount_msat,
977981
payment_hash,
978982
) {
979-
log_error!(self.logger, "Failed to handle HTLCIntercepted event: {:?}", e);
983+
log_error!(
984+
self.logger,
985+
"LSPS2 service failed to handle HTLCIntercepted event: {:?}",
986+
e
987+
);
980988
}
981989
}
982990
}
983991

984992
pub(crate) fn handle_htlc_handling_failed(&self, failed_next_destination: HTLCDestination) {
985993
if let Some(lsps2_service_handler) = self.liquidity_manager.lsps2_service_handler() {
986994
if let Err(e) = lsps2_service_handler.htlc_handling_failed(failed_next_destination) {
987-
log_error!(self.logger, "Errored processing HTLCHandlingFailed event: {:?}", e);
995+
log_error!(
996+
self.logger,
997+
"LSPS2 service failed to handle HTLCHandlingFailed event: {:?}",
998+
e
999+
);
9881000
}
9891001
}
9901002
}
@@ -993,7 +1005,11 @@ where
9931005
if let Some(next_channel_id) = next_channel_id {
9941006
if let Some(lsps2_service_handler) = self.liquidity_manager.lsps2_service_handler() {
9951007
if let Err(e) = lsps2_service_handler.payment_forwarded(next_channel_id) {
996-
log_error!(self.logger, "Failed to handle PaymentForwarded: {:?}", e);
1008+
log_error!(
1009+
self.logger,
1010+
"LSPS2 service failed to handle PaymentForwarded: {:?}",
1011+
e
1012+
);
9971013
}
9981014
}
9991015
}

0 commit comments

Comments
 (0)