Skip to content

Commit

Permalink
cli: use same offset when following single or multiple alloc logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasell committed Sep 28, 2023
1 parent 8590876 commit 096f8e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/alloc_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (l *AllocLogsCommand) tailMultipleFiles(client *api.Client, alloc *api.Allo
defer close(cancel)

stdoutFrames, stdoutErrCh := client.AllocFS().Logs(
alloc, true, l.task, api.FSLogNameStdout, api.OriginEnd, 1, cancel, nil)
alloc, true, l.task, api.FSLogNameStdout, api.OriginEnd, 0, cancel, nil)

// Setting up the logs stream can fail, therefore we need to check the
// error channel before continuing further.
Expand All @@ -369,7 +369,7 @@ func (l *AllocLogsCommand) tailMultipleFiles(client *api.Client, alloc *api.Allo
}

stderrFrames, stderrErrCh := client.AllocFS().Logs(
alloc, true, l.task, api.FSLogNameStderr, api.OriginEnd, 1, cancel, nil)
alloc, true, l.task, api.FSLogNameStderr, api.OriginEnd, 0, cancel, nil)

// Setting up the logs stream can fail, therefore we need to check the
// error channel before continuing further.
Expand Down

0 comments on commit 096f8e3

Please sign in to comment.