Skip to content

Commit 97918a9

Browse files
Remove redundant log when paying BOLT 12 invoice
We already log the error in ChannelManager::handle_message.
1 parent 45673cf commit 97918a9

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
@@ -1180,12 +1180,7 @@ impl OutboundPayments {
11801180

11811181
onion_utils::set_max_path_length(
11821182
route_params, recipient_onion, keysend_preimage, best_block_height
1183-
)
1184-
.map_err(|()| {
1185-
log_error!(logger, "Can't construct an onion packet without exceeding 1300-byte onion \
1186-
hop_data length for payment with id {} and hash {}", payment_id, payment_hash);
1187-
RetryableSendFailure::OnionPacketSizeExceeded
1188-
})?;
1183+
).map_err(|()| RetryableSendFailure::OnionPacketSizeExceeded)?;
11891184

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

0 commit comments

Comments
 (0)