Skip to content

Commit

Permalink
fix(seedutil): avoid logging seed in logs
Browse files Browse the repository at this point in the history
In this commit we're reducing the verbosity of a failed `seedutil` call
to not include the exact error message since it will also print the seed
phrase to the logs.

Fixes #1254
  • Loading branch information
Karl Ranna committed Sep 30, 2019
1 parent 58fcb3d commit 6fdc36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/swaps/SwapClientManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ class SwapClientManager extends EventEmitter {
const keystorePromise = seedutil(seedMnemonic, '', keystorepath).then(() => {
this.raidenClient.logger.info(`created raiden keystore with master seed and empty password in ${keystorepath}`);
initializedRaiden = true;
}).catch((err) => {
this.raidenClient.logger.warn(`could not create keystore: ${err}`);
}).catch(() => {
this.raidenClient.logger.warn('could not create keystore');
});
initWalletPromises.push(keystorePromise);
}
Expand Down

0 comments on commit 6fdc36b

Please sign in to comment.