Skip to content

Commit

Permalink
fix(swaps): don't log non-existent route (#1772)
Browse files Browse the repository at this point in the history
This fixes a log statement to not attempt to log a route when none
exists, which would cause `undefined` to be logged.
  • Loading branch information
sangaman authored Jul 30, 2020
1 parent 6e8d2d5 commit 2ff63b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lndclient/LndClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ class LndClient extends SwapClient {
if (route) {
this.logger.debug(`found a route to ${destination} for ${units} units with finalCltvDelta ${finalLock}: ${route}`);
} else {
this.logger.debug(`could not find a route to ${destination} for ${units} units with finalCltvDelta ${finalLock}: ${route}`);
this.logger.debug(`could not find a route to ${destination} for ${units} units with finalCltvDelta ${finalLock}`);
}
return route;
}
Expand Down

0 comments on commit 2ff63b9

Please sign in to comment.