@smallstack/core-common
Advanced tools
Comparing version 1.125.0-rc.2 to 1.125.0-rc.4
{ | ||
"name": "@smallstack/core-common", | ||
"version": "1.125.0-rc.2", | ||
"version": "1.125.0-rc.4", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -17,3 +17,2 @@ export type LoggerLevel = "info" | "debug" | "error" | "warn"; | ||
static setLoggerMaxLength(maxLength: number): void; | ||
debugMode: boolean; | ||
loggerDebugModules: string[]; | ||
@@ -20,0 +19,0 @@ loggerMaxLength: number; |
@@ -7,3 +7,2 @@ "use strict"; | ||
constructor() { | ||
this.debugMode = false; | ||
this.loggerDebugModules = []; | ||
@@ -79,3 +78,3 @@ this.loggerMaxLength = 10; | ||
} | ||
const consoleLevel = level === "debug" ? "log" : level; | ||
const consoleLevel = level; //=== "debug" ? "log" : level; | ||
if (typeof console !== "undefined" && typeof console[consoleLevel] === "function") { | ||
@@ -102,4 +101,2 @@ if (stacktrace) | ||
loggingModule(level, moduleName) { | ||
if (this.debugMode) | ||
return true; | ||
if (level === "debug" && this.getDebugModules().indexOf(moduleName) === -1) | ||
@@ -106,0 +103,0 @@ return false; |
Sorry, the diff of this file is not supported yet
46392
722