From 4693dbb8241363614608383b2fc6794e8867e8ad Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Mon, 16 Sep 2024 17:15:55 +0100 Subject: [PATCH] fix(options): fix default log.warn() to use console.warn not .error --- src/lib/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/options.ts b/src/lib/options.ts index 2faa4b3a..04f3352e 100644 --- a/src/lib/options.ts +++ b/src/lib/options.ts @@ -65,7 +65,7 @@ const options: YahooFinanceOptions = { }, logger: { info: (...args: any[]) => console.log(...args), - warn: (...args: any[]) => console.error(...args), + warn: (...args: any[]) => console.warn(...args), error: (...args: any[]) => console.error(...args), debug: (...args: any[]) => console.log(...args), },