Skip to content

Commit f3e23c1

Browse files
Remove redundant log when paying BOLT 12 invoice.
We already log the error in channelmanager.
1 parent 2f40163 commit f3e23c1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,12 +1107,7 @@ impl OutboundPayments {
11071107

11081108
onion_utils::set_max_path_length(
11091109
route_params, recipient_onion, keysend_preimage, best_block_height
1110-
)
1111-
.map_err(|()| {
1112-
log_error!(logger, "Can't construct an onion packet without exceeding 1300-byte onion \
1113-
hop_data length for payment with id {} and hash {}", payment_id, payment_hash);
1114-
RetryableSendFailure::OnionPacketSizeExceeded
1115-
})?;
1110+
).map_err(|()| RetryableSendFailure::OnionPacketSizeExceeded)?;
11161111

11171112
let mut route = router.find_route_with_id(
11181113
&node_signer.get_node_id(Recipient::Node).unwrap(), route_params,

0 commit comments

Comments
 (0)