mirror of https://github.com/embarklabs/embark.git
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:
parent
1a4f63df7e
commit
e9be40c289
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue