mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Only return logs that exist
This commit is contained in:
parent
782db3f324
commit
4726fe8b6f
3 changed files with 26 additions and 7 deletions
|
|
@ -38,14 +38,14 @@ export class LogsComponent implements OnInit, AfterViewChecked {
|
|||
}
|
||||
|
||||
reloadLogs() {
|
||||
this.logService.get(this.activeLog).subscribe(
|
||||
(result) => {
|
||||
this.logService.get(this.activeLog).subscribe({
|
||||
next: (result) => {
|
||||
this.logs = result
|
||||
},
|
||||
(error) => {
|
||||
error: () => {
|
||||
this.logs = []
|
||||
}
|
||||
)
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
getLogLevel(log: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue