From fa7a168f1782653e7e93a02a2a371b87c3d2d896 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Thu, 9 Apr 2020 18:39:43 +0200 Subject: [PATCH] Fixing bug with time using wrong logging instance --- package.json | 2 +- src/base.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0bc8537..577ad18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "2.3.1", + "version": "2.3.2", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/base.ts b/src/base.ts index be6b246..b068fc5 100644 --- a/src/base.ts +++ b/src/base.ts @@ -254,7 +254,7 @@ export class LoggingBase { let timer = this.timerMap.get(id); if (timer) { let diff = this.getTimeDiff(timer.start); - Logging.message(LoggingTypes.Debug, [ + this.message(LoggingTypes.Debug, [ withColor(Colors.GREEN, `[${timer.name}]`), `->`, withColor(Colors.BLUE, diff.toFixed(4)),