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

WIP: Show older logs #11120

Closed
wants to merge 2 commits into from
Closed

Conversation

marusak
Copy link
Member

@marusak marusak commented Feb 6, 2019

Fixes #771
I am opening this PR so someone can look at it and say if this approach makes sense.

Before:
before771
After:
after771

Known issues:

  1. If the last line to be added happened in different day, we add two lines (line with day and the line itself). However then we cut to N lines and last line stays the day line. pics or it didn't happen -
    10day771

  2. When new lines are added (as they later happen) those appended are not removed. (Trying to figure this out, but thought that I will open this to see if I am walking in a right direction)

If N lines are requested from the logs panel, but all of them are same,
   only one line was shown (with count 10 on right side).
After this commit 10 lines are shown.

Closes cockpit-project#771
Since newer logs are prepended, keeping only last `max` logs does not make
sense to me. Keeping only first `max` makes much more sense to me.
@marusak
Copy link
Member Author

marusak commented Jul 23, 2019

Needs to rebase to master since #12367 changed tests names

@marusak
Copy link
Member Author

marusak commented Oct 7, 2019

Closing since I am not interested now into fixing it.
And also I am not entirely sure about this approach anyway.

@marusak marusak closed this Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embedded journal: count real screen lines.
1 participant