mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Extensions: Show error and warning logs in the console (#94682)
fix: log extensions framework errors and warnings to the console
This commit is contained in:
parent
97258ca1eb
commit
2867f92974
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user