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
This commit is contained in:
emizzle 2020-02-13 13:23:03 +11:00 committed by Pascal Precht
parent 1a4f63df7e
commit e9be40c289
1 changed files with 0 additions and 10 deletions

View File

@ -204,16 +204,6 @@ export class Logger {
this.events.emit("log", "dir", obj); this.events.emit("log", "dir", obj);
this.logFunction(obj, null); 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) { shouldLog(level) {