From 7ae1c3e16ecbc5bb6957772eaa90817c6a4d6ea7 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 15 Apr 2020 19:59:24 +0200 Subject: [PATCH] Remove bad console.log --- package.json | 2 +- src/base.ts | 1 - src/consolewriter.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index eaa9832..a980a6a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "2.4.0", + "version": "2.4.1", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/base.ts b/src/base.ts index a0024fe..b320156 100644 --- a/src/base.ts +++ b/src/base.ts @@ -488,7 +488,6 @@ function getCallerFile() { while (stack.length) { let caller_file = stack.shift(); if (current_file !== caller_file.getFileName()) { - console.log(Object.keys(caller_file)); return { file: caller_file.getFileName(), line: caller_file.getLineNumber(), diff --git a/src/consolewriter.ts b/src/consolewriter.ts index 9f4067a..ed10e17 100644 --- a/src/consolewriter.ts +++ b/src/consolewriter.ts @@ -157,7 +157,7 @@ export class ConsoleAdapter implements Adapter { console.log(prefix + text); }); } else { - message.text.raw.forEach(console.log.bind(console)); + message.text.raw.forEach((line) => console.log(prefix + line)); } } }