diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-06-13 13:36:20 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-06-14 15:28:45 +0200 |
commit | 1b62e4543845907ffba61086a79883751abca819 (patch) | |
tree | 72059e447976aa1fcc7935193cf405c174e34d82 /libpod/container_log_linux.go | |
parent | 9fac1b335f681400a029e9d8014f45fa5634ec40 (diff) | |
download | podman-1b62e4543845907ffba61086a79883751abca819.tar.gz podman-1b62e4543845907ffba61086a79883751abca819.tar.bz2 podman-1b62e4543845907ffba61086a79883751abca819.zip |
golangci-lint: add systemd build tag
Lint the systemd code and fix the reported problems.
The remoteclient tag is no longer used so I just removed it.
[NO NEW TESTS NEEDED]
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/container_log_linux.go')
-rw-r--r-- | libpod/container_log_linux.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go index deb726526..7f90332c7 100644 --- a/libpod/container_log_linux.go +++ b/libpod/container_log_linux.go @@ -292,11 +292,12 @@ func formatterPrefix(entry *sdjournal.JournalEntry) (string, error) { if !ok { return "", errors.Errorf("no PRIORITY field present in journal entry") } - if priority == journaldLogOut { + switch priority { + case journaldLogOut: output += "stdout " - } else if priority == journaldLogErr { + case journaldLogErr: output += "stderr " - } else { + default: return "", errors.Errorf("unexpected PRIORITY field in journal entry") } |