From e9be40c289f5f4bb1cf730609c42dfae116eee14 Mon Sep 17 00:00:00 2001 From: emizzle Date: Thu, 13 Feb 2020 13:23:03 +1100 Subject: [PATCH] fix(@embark/logger): Remove `writeToFile` for logger `dir` When using `dir` in the logger, do not write this value to the log file, and instead only print the output to the screen --- packages/core/logger/src/index.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/core/logger/src/index.js b/packages/core/logger/src/index.js index e49d5e218..c5a666797 100644 --- a/packages/core/logger/src/index.js +++ b/packages/core/logger/src/index.js @@ -204,16 +204,6 @@ export class Logger { this.events.emit("log", "dir", obj); this.logFunction(obj, null); - - let origin; - if (this.isDebugOrTrace) { - try { - const stack = new Error().stack; - origin = stack.split('\n')[2].trim(); - // eslint-disable-next-line no-empty - } catch (e) {} - } - this.writeToFile({ args: obj, origin, prefix: "[dir]" }); } shouldLog(level) {