Skip to content

Commit e9be40c

Browse files
emizzle0x-r4bbit
authored andcommitted
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
1 parent 1a4f63d commit e9be40c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/core/logger/src/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,6 @@ export class Logger {
204204

205205
this.events.emit("log", "dir", obj);
206206
this.logFunction(obj, null);
207-
208-
let origin;
209-
if (this.isDebugOrTrace) {
210-
try {
211-
const stack = new Error().stack;
212-
origin = stack.split('\n')[2].trim();
213-
// eslint-disable-next-line no-empty
214-
} catch (e) {}
215-
}
216-
this.writeToFile({ args: obj, origin, prefix: "[dir]" });
217207
}
218208

219209
shouldLog(level) {

0 commit comments

Comments
 (0)