Skip to content

Add tailing functionality - #9

Merged
jskiba merged 12 commits into
mainfrom
introducing-tail
Jul 10, 2024
Merged

jskiba merged 12 commits into
mainfrom
introducing-tail

Conversation

@jskiba

@jskiba jskiba commented Jul 4, 2024 •

Copy link
Copy Markdown
Contributor
  • add --follow flag
  • allow printing logs in live mode
  • update group flag usage

Comment thread logs/command.go Resolved
@jskiba
jskiba merged commit 6757cfa into main Jul 10, 2024
@jskiba
jskiba deleted the introducing-tail branch July 10, 2024 07:00
Comment thread logs/client.go
Comment on lines +199 to +201
if logs.NextPage == "" {
break
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving this up here isn't necessarily safe. If there are events sent back in the last page, this will drop them. (The API might not do this currently, but it probably will in the future.)

I think we probably want this to go back to its original spot, and then the time.Sleep can go at the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants