fix: widen parameter type

Philipp Burckhardt 2023-06-26 20:01:04 -04:00
rodzic 1b45ea82be
commit c1043053fa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A2C3BCA4F31D1DDD
1 zmienionych plików z 10 dodań i 10 usunięć

Wyświetl plik

@ -77,25 +77,25 @@ logger.formatArgs = function formatArgs(args) {
} }
export const defaultLogger = { export const defaultLogger = {
debug: (message: string, ...args: any[]) => { debug: (formatter: any, ...args: any[]) => {
if (LOG_LEVEL > Severity.DEBUG) return if (LOG_LEVEL > Severity.DEBUG) return
debug(message, ...args, Severity.DEBUG) debug(formatter, ...args, Severity.DEBUG)
}, },
info: (message: string, ...args: any[]) => { info: (formatter: any, ...args: any[]) => {
if (LOG_LEVEL > Severity.INFO) return if (LOG_LEVEL > Severity.INFO) return
debug(message, ...args, Severity.INFO) debug(formatter, ...args, Severity.INFO)
}, },
warn: (message: string, ...args: any[]) => { warn: (formatter: any, ...args: any[]) => {
if (LOG_LEVEL > Severity.WARNING) return if (LOG_LEVEL > Severity.WARNING) return
debug(message, ...args, Severity.WARNING) debug(formatter, ...args, Severity.WARNING)
}, },
error: (message: string, ...args: any[]) => { error: (formatter: any, ...args: any[]) => {
if (LOG_LEVEL > Severity.ERROR) return if (LOG_LEVEL > Severity.ERROR) return
debug(message, ...args, Severity.ERROR) debug(formatter, ...args, Severity.ERROR)
}, },
critical: (message: string, ...args: any[]) => { critical: (formatter: any, ...args: any[]) => {
if (LOG_LEVEL > Severity.CRITICAL) return if (LOG_LEVEL > Severity.CRITICAL) return
debug(message, ...args, Severity.CRITICAL) debug(formatter, ...args, Severity.CRITICAL)
} }
} }