mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
cli: use same offset when following single or multiple alloc logs. (#18604)
This commit is contained in:
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user