From 2867f929743f56d2cbd5f675b7e5145eabe9e86d Mon Sep 17 00:00:00 2001 From: Levente Balogh Date: Mon, 14 Oct 2024 15:44:47 +0200 Subject: [PATCH] Extensions: Show error and warning logs in the console (#94682) fix: log extensions framework errors and warnings to the console --- public/app/features/plugins/extensions/logs/log.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/plugins/extensions/logs/log.ts b/public/app/features/plugins/extensions/logs/log.ts index a78d42ccea0..fc87ba3019b 100644 --- a/public/app/features/plugins/extensions/logs/log.ts +++ b/public/app/features/plugins/extensions/logs/log.ts @@ -32,10 +32,12 @@ export class ExtensionsLog { } warning(message: string, labels?: Labels): void { + console.warn(message, labels); this.log(LogLevel.warning, message, labels); } error(message: string, labels?: Labels): void { + console.error(message, labels); this.log(LogLevel.error, message, labels); }