Skip to content

Commit

Permalink
fix(@embark/logger): Remove writeToFile for logger dir
Browse files Browse the repository at this point in the history
When using `dir` in the logger, do not write this value to the log file, and instead only print the output to the screen
  • Loading branch information
emizzle authored and 0x-r4bbit committed Feb 13, 2020
1 parent 1a4f63d commit e9be40c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/core/logger/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e9be40c

Please sign in to comment.