From 6fdc36b092f979e178536cf5c66edce5b049fb44 Mon Sep 17 00:00:00 2001 From: Karl Ranna Date: Mon, 30 Sep 2019 14:31:33 +0000 Subject: [PATCH] fix(seedutil): avoid logging seed in logs 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 https://github.com/ExchangeUnion/xud/issues/1254 --- lib/swaps/SwapClientManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/swaps/SwapClientManager.ts b/lib/swaps/SwapClientManager.ts index 41fbbf3cf..3e997f679 100644 --- a/lib/swaps/SwapClientManager.ts +++ b/lib/swaps/SwapClientManager.ts @@ -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); }