arch(sprint1): add unknown widget fallback diagnostics
This commit is contained in:
16
src/app/core/runtime/runtime-diagnostics.service.ts
Normal file
16
src/app/core/runtime/runtime-diagnostics.service.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
export interface UnknownWidgetDiagnostic {
|
||||
tenant: string;
|
||||
page: string;
|
||||
section: string;
|
||||
widget: string;
|
||||
reason: string;
|
||||
}
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class RuntimeDiagnosticsService {
|
||||
logUnknownWidget(event: UnknownWidgetDiagnostic): void {
|
||||
console.warn('[PlatformRuntime][UnknownWidget]', event);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user