mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Merge pull request #2739 from paperless-ngx/fix-2738
Fix: only offer log files that exist
This commit is contained in:
commit
dbea2acc8f
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