Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support logs -f without printing any line #4396

Closed
giuseppe opened this issue Oct 31, 2019 · 2 comments · Fixed by #4399
Closed

support logs -f without printing any line #4396

giuseppe opened this issue Oct 31, 2019 · 2 comments · Fixed by #4399
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@giuseppe
Copy link
Member

/kind feature

Description

I'd like to be able to use "podman logs -f` and not print any existing log line. I want to follow only the new output.

It is not currently possible as podman logs -fl --tail 0 defaults to print all lines.

Should we change the type to Int64 and use -1 as default, or rather change the default to math.MaxUint64?

@openshift-ci-robot openshift-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 31, 2019
@mheon
Copy link
Member

mheon commented Oct 31, 2019

I'd support going to signed and special-casing negative numbers

@giuseppe
Copy link
Member Author

PR here: #4399

giuseppe added a commit to giuseppe/libpod that referenced this issue Oct 31, 2019
change the default to -1, so that we can change the semantic of
"--tail 0" to not print any existing log line.

Closes: containers#4396

Signed-off-by: Giuseppe Scrivano <[email protected]>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants