Skip to content

Commit d55bf01

Browse files
committed
wip
1 parent d580e1e commit d55bf01

File tree

1 file changed

+5
-5
lines changed
  • packages/signals/signals/src/lib/logger

1 file changed

+5
-5
lines changed

packages/signals/signals/src/lib/logger/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class Logger {
1313
}
1414

1515
constructor() {
16-
const debugMode = parseDebugModeQueryString()
17-
if (typeof debugMode === 'boolean') {
18-
this.enableLogging('info')
19-
}
20-
2116
const logLevel = parseSignalsLogLevel()
2217
if (logLevel !== undefined) {
2318
logLevel === 'off' ? this.disableLogging() : this.enableLogging(logLevel)
19+
} else {
20+
const debugMode = parseDebugModeQueryString()
21+
if (debugMode === true) {
22+
this.enableLogging('info')
23+
}
2424
}
2525
}
2626

0 commit comments

Comments
 (0)