Fixing bug with time using wrong logging instance
This commit is contained in:
parent
2eb9356a9d
commit
fa7a168f17
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hibas123/logging",
|
"name": "@hibas123/logging",
|
||||||
"version": "2.3.1",
|
"version": "2.3.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "out/index.js",
|
"main": "out/index.js",
|
||||||
"types": "out/index.d.ts",
|
"types": "out/index.d.ts",
|
||||||
|
@ -254,7 +254,7 @@ export class LoggingBase {
|
|||||||
let timer = this.timerMap.get(id);
|
let timer = this.timerMap.get(id);
|
||||||
if (timer) {
|
if (timer) {
|
||||||
let diff = this.getTimeDiff(timer.start);
|
let diff = this.getTimeDiff(timer.start);
|
||||||
Logging.message(LoggingTypes.Debug, [
|
this.message(LoggingTypes.Debug, [
|
||||||
withColor(Colors.GREEN, `[${timer.name}]`),
|
withColor(Colors.GREEN, `[${timer.name}]`),
|
||||||
`->`,
|
`->`,
|
||||||
withColor(Colors.BLUE, diff.toFixed(4)),
|
withColor(Colors.BLUE, diff.toFixed(4)),
|
||||||
|
Loading…
Reference in New Issue
Block a user