Skip to content

Commit 2bb9c60

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

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
@@ -1200,12 +1200,7 @@ impl OutboundPayments {
12001200

12011201
onion_utils::set_max_path_length(
12021202
route_params, recipient_onion, keysend_preimage, best_block_height
1203-
)
1204-
.map_err(|()| {
1205-
log_error!(logger, "Can't construct an onion packet without exceeding 1300-byte onion \
1206-
hop_data length for payment with id {} and hash {}", payment_id, payment_hash);
1207-
RetryableSendFailure::OnionPacketSizeExceeded
1208-
})?;
1203+
).map_err(|()| RetryableSendFailure::OnionPacketSizeExceeded)?;
12091204

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

0 commit comments

Comments
 (0)