From 096f8e3789a5ee820d336a89aae216a309cacdaf Mon Sep 17 00:00:00 2001 From: James Rasell Date: Thu, 28 Sep 2023 14:43:02 +0100 Subject: [PATCH] cli: use same offset when following single or multiple alloc logs. --- command/alloc_logs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/alloc_logs.go b/command/alloc_logs.go index 45a1341921e..fb430a753ca 100644 --- a/command/alloc_logs.go +++ b/command/alloc_logs.go @@ -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.