mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-27 01:44:30 +01:00
add details to error messages
This commit is contained in:
@@ -90,14 +90,17 @@ public class MultiPathPaymentSplitter {
|
||||
}
|
||||
Set<LocalChannel> channels = channelService.getAllChannelsWith(peer);
|
||||
if (channels.isEmpty()) {
|
||||
logger.error("Unable to extend routes for channel with " + peer);
|
||||
logger.error("Unable to extend routes for channel with " + peer + " (no channel found)");
|
||||
return List.of();
|
||||
}
|
||||
LocalChannel localChannel = channels.stream().iterator().next();
|
||||
ChannelId channelId = localChannel.getId();
|
||||
Policy policy = policyService.getPolicyFrom(channelId, peer).orElse(null);
|
||||
if (policy == null) {
|
||||
logger.error("Unable to extend routes for channel with " + peer);
|
||||
logger.error(
|
||||
"Unable to extend routes for channel with %s (no policy found for channel %s)"
|
||||
.formatted(peer, channelId)
|
||||
);
|
||||
return List.of();
|
||||
}
|
||||
Coins capacity = localChannel.getCapacity();
|
||||
|
||||
Reference in New Issue
Block a user