fix: rename from warning to warn

old-agentic-v1^2
Philipp Burckhardt 2023-06-26 19:59:46 -04:00
rodzic c9a7c7b2b5
commit 1b45ea82be
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A2C3BCA4F31D1DDD
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> = {
[Severity.DEBUG]: 'DEBUG',
[Severity.INFO]: 'INFO',
[Severity.WARNING]: 'WARNING',
[Severity.WARNING]: 'WARN',
[Severity.ERROR]: 'ERROR',
[Severity.CRITICAL]: 'CRITICAL'
}
@ -85,7 +85,7 @@ export const defaultLogger = {
if (LOG_LEVEL > Severity.INFO) return
debug(message, ...args, Severity.INFO)
},
warning: (message: string, ...args: any[]) => {
warn: (message: string, ...args: any[]) => {
if (LOG_LEVEL > Severity.WARNING) return
debug(message, ...args, Severity.WARNING)
},