mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
cli: use same offset when following single or multiple alloc logs. (#18604)
This commit is contained in:
3
.changelog/18604.txt
Normal file
3
.changelog/18604.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
cli: Use same offset when following single or multiple alloc logs
|
||||
```
|
||||
@@ -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