mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
add boot param to logs subscription
This commit is contained in:
@@ -35,7 +35,9 @@ function convertAnsi(entries: readonly any[]): string {
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class LogsService extends Observable<readonly string[]> {
|
||||
private readonly api = inject(ApiService)
|
||||
private readonly log$ = defer(() => this.api.initFollowLogs({})).pipe(
|
||||
private readonly log$ = defer(() =>
|
||||
this.api.initFollowLogs({ boot: 0 }),
|
||||
).pipe(
|
||||
switchMap(({ guid }) => this.api.openWebsocket$<Log>(guid, {})),
|
||||
bufferTime(250),
|
||||
filter(logs => !!logs.length),
|
||||
|
||||
Reference in New Issue
Block a user