Skip to content

Commit 8b37a43

Browse files
committed
fix diagnostics logging function instead of value
1 parent 50bc085 commit 8b37a43

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/logger/src/Logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class Logger {
9393
// console.info('\tFORCE_LOG_WRITER', process && process.env && process.env.FORCE_LOG_WRITER)
9494
console.info('\tlocation', import.meta.url)
9595
console.info('\tsystemThreshold', this.getSystemThreshold())
96-
console.info('\tdefaultThreshold', this.getDefaultThreshold)
96+
console.info('\tdefaultThreshold', this.getDefaultThreshold())
9797
console.info('\tDEBUG is', Level.DEBUG)
9898
console.info('\tINFO is', Level.INFO)
9999
console.info('\tConfigured logs:')

packages/logger/src/debugs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { LoggersConfig } from './configureLoggers.js'
2+
import { Level } from './Level.js'
23

34
export const debugs = (classes: string[]): LoggersConfig => {
45
const loggers: LoggersConfig = {}
56
classes.forEach((name) => {
6-
loggers[name] = 'debug'
7+
loggers[name] = Level.DEBUG
78
})
89
return loggers
910
}

0 commit comments

Comments
 (0)