Skip to content

Commit 741cf01

Browse files
Remove redundant log when paying BOLT 12 invoice.
We already log the error in channelmanager.
1 parent be0e984 commit 741cf01

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lightning/src/ln/outbound_payment.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1123,12 +1123,7 @@ impl OutboundPayments {
11231123

11241124
onion_utils::set_max_path_length(
11251125
route_params, recipient_onion, keysend_preimage, best_block_height
1126-
)
1127-
.map_err(|()| {
1128-
log_error!(logger, "Can't construct an onion packet without exceeding 1300-byte onion \
1129-
hop_data length for payment with id {} and hash {}", payment_id, payment_hash);
1130-
RetryableSendFailure::OnionPacketSizeExceeded
1131-
})?;
1126+
).map_err(|()| RetryableSendFailure::OnionPacketSizeExceeded)?;
11321127

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

0 commit comments

Comments
 (0)