From e83f0daf31173202e5b42baeeb547c1c760c2d73 Mon Sep 17 00:00:00 2001 From: Jacob Phillips Date: Mon, 18 Nov 2024 14:41:34 -0500 Subject: [PATCH] fix log this context --- src/lib/log.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/log.ts b/src/lib/log.ts index 53c2255..7763442 100644 --- a/src/lib/log.ts +++ b/src/lib/log.ts @@ -25,16 +25,16 @@ export class Log { setLevel(level: number) { this.level = level; if (level >= Log.ASSERT) this.assert = console.assert.bind(console); - else this.assert = function () {}; + else this.assert = () => {}; if (level >= Log.ERROR) this.error = console.error.bind(console); - else this.error = function () {}; + else this.error = () => {}; if (level >= Log.WARN) this.warn = console.warn.bind(console); - else this.warn = function () {}; + else this.warn = () => {}; if (level >= Log.INFO) this.info = console.info.bind(console); - else this.info = function () {}; + else this.info = () => {}; if (level >= Log.DEBUG) this.debug = console.debug.bind(console); - else this.debug = function () {}; + else this.debug = () => {}; if (level >= Log.TRACE) this.trace = console.log.bind(console); - else this.trace = function () {}; + else this.trace = () => {}; } }