Skip to content

Commit 2ff63b9

Browse files
authored
fix(swaps): don't log non-existent route (#1772)
This fixes a log statement to not attempt to log a route when none exists, which would cause `undefined` to be logged.
1 parent 6e8d2d5 commit 2ff63b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/lndclient/LndClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ class LndClient extends SwapClient {
870870
if (route) {
871871
this.logger.debug(`found a route to ${destination} for ${units} units with finalCltvDelta ${finalLock}: ${route}`);
872872
} else {
873-
this.logger.debug(`could not find a route to ${destination} for ${units} units with finalCltvDelta ${finalLock}: ${route}`);
873+
this.logger.debug(`could not find a route to ${destination} for ${units} units with finalCltvDelta ${finalLock}`);
874874
}
875875
return route;
876876
}

0 commit comments

Comments
 (0)