We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74f8b29 commit 387ba35Copy full SHA for 387ba35
1 file changed
internal/cli/logs.go
@@ -162,7 +162,7 @@ func tailLogsCmd(cli *cli) *cobra.Command {
162
163
var lastLogID string
164
if len(list) > 0 {
165
- lastLogID = list[len(list)-1].GetLogID()
+ lastLogID = list[0].GetLogID()
166
}
167
168
// Create a `set` to detect duplicates clientside.
@@ -193,14 +193,14 @@ func tailLogsCmd(cli *cli) *cobra.Command {
193
return
194
195
196
- if len(list) > 0 {
+ if len(list) > 1 {
197
logsCh <- dedupeLogs(list, set)
198
199
200
201
if len(list) < logsPerPageLimit {
202
// Not a lot is happening, sleep on it.
203
- time.Sleep(time.Second)
+ time.Sleep(2 * time.Second)
204
205
206
}(lastLogID)
0 commit comments