fix: rename from warning to warn

old-agentic-v1^2
Philipp Burckhardt 2023-06-26 19:59:46 -04:00
rodzic 34d4982709
commit cf8fbfc446
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -22,7 +22,7 @@ export enum Severity {
const SEVERITY_STRINGS: Record<Severity, string> = { const SEVERITY_STRINGS: Record<Severity, string> = {
[Severity.DEBUG]: 'DEBUG', [Severity.DEBUG]: 'DEBUG',
[Severity.INFO]: 'INFO', [Severity.INFO]: 'INFO',
[Severity.WARNING]: 'WARNING', [Severity.WARNING]: 'WARN',
[Severity.ERROR]: 'ERROR', [Severity.ERROR]: 'ERROR',
[Severity.CRITICAL]: 'CRITICAL' [Severity.CRITICAL]: 'CRITICAL'
} }
@ -85,7 +85,7 @@ export const defaultLogger = {
if (LOG_LEVEL > Severity.INFO) return if (LOG_LEVEL > Severity.INFO) return
debug(message, ...args, Severity.INFO) debug(message, ...args, Severity.INFO)
}, },
warning: (message: string, ...args: any[]) => { warn: (message: string, ...args: any[]) => {
if (LOG_LEVEL > Severity.WARNING) return if (LOG_LEVEL > Severity.WARNING) return
debug(message, ...args, Severity.WARNING) debug(message, ...args, Severity.WARNING)
}, },