mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Added suppression info (#2790)
* added suppression info * added to type
This commit is contained in:
parent
1afb8f109e
commit
513eaea4f4
@ -7,6 +7,9 @@ export interface LoggedError {
|
|||||||
// unix timestamp in seconds
|
// unix timestamp in seconds
|
||||||
timestamp: number;
|
timestamp: number;
|
||||||
exception: string;
|
exception: string;
|
||||||
|
count: number;
|
||||||
|
// unix timestamp in seconds
|
||||||
|
first_occured: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fetchSystemLog = (hass: HomeAssistant) =>
|
export const fetchSystemLog = (hass: HomeAssistant) =>
|
||||||
|
@ -68,6 +68,16 @@ class SystemLogCard extends LitElement {
|
|||||||
this.hass!.language
|
this.hass!.language
|
||||||
)}
|
)}
|
||||||
${item.source} (${item.level})
|
${item.source} (${item.level})
|
||||||
|
${item.count > 1
|
||||||
|
? html`
|
||||||
|
- message first occured at
|
||||||
|
${formatLogTime(
|
||||||
|
item.first_occured,
|
||||||
|
this.hass!.language
|
||||||
|
)}
|
||||||
|
and shows up ${item.count} times
|
||||||
|
`
|
||||||
|
: html``}
|
||||||
</div>
|
</div>
|
||||||
</paper-item-body>
|
</paper-item-body>
|
||||||
</paper-item>
|
</paper-item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user