From 2c9040904aa040513d1524dd21b1126fc2e94dab Mon Sep 17 00:00:00 2001 From: Vladislav Hristov Date: Tue, 8 Oct 2019 16:09:08 +0300 Subject: [PATCH] chore: remove console.log statements --- lib/BankLetter.js | 3 +-- lib/storages/tracesStorage.js | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/BankLetter.js b/lib/BankLetter.js index 46932d8..400766e 100644 --- a/lib/BankLetter.js +++ b/lib/BankLetter.js @@ -63,11 +63,10 @@ module.exports = class BankLetter { try { fs.writeFileSync(path, letter); - console.log(`Data written to file on path '${path}'`); } catch (error) { - console.error(`error while writing bank letter to path '${path}' with error ${error}`); throw error; } + return new Promise(resolve => resolve(true)); } }; diff --git a/lib/storages/tracesStorage.js b/lib/storages/tracesStorage.js index ac006e6..9fc29a6 100644 --- a/lib/storages/tracesStorage.js +++ b/lib/storages/tracesStorage.js @@ -58,9 +58,7 @@ module.exports = dir => ({ try { fs.writeFileSync(path, this.traceData); - console.log("Data written to file"); } catch (error) { - console.log(error); throw error; } },