diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2021-08-18 12:13:03 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2021-08-23 17:59:49 -0400 |
commit | 1411fa5f23e3890fe870ec4ffdf2e6f114688030 (patch) | |
tree | ad7a1bec962c33976caedaea123066765ab0fd6d /utils | |
parent | 6b06e9b77c8191096eeb82ac54c59b894f87da8c (diff) | |
download | podman-1411fa5f23e3890fe870ec4ffdf2e6f114688030.tar.gz podman-1411fa5f23e3890fe870ec4ffdf2e6f114688030.tar.bz2 podman-1411fa5f23e3890fe870ec4ffdf2e6f114688030.zip |
libpod/Container.readFromJournal(): don't skip the first entry
When reading log entries from the journal, don't skip past the first
matching entry after we've positioned the cursor at it.
Make the first blank-line entry that we logged so that the container
would always have at least one log entry for us to find (until it gets
vacuumed out, at least) a fake history entry, so that `logs` doesn't
pass it on for display.
CI already has tests that exercise journal-based logging, so
[NO TESTS NEEDED]
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions