summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyml <wurongjie1@gmail.com>2022-02-07 05:27:05 +0000
committermyml <wurongjie1@gmail.com>2022-02-07 13:59:25 +0800
commit44fb431a3ced04c6b9e5d05dd7601dc5d2c9159b (patch)
tree9f91bbdb21f749035b3e53be0e497876fcaf949f
parentab4af502b3f60f891192356eddaa13092f785612 (diff)
downloadpodman-44fb431a3ced04c6b9e5d05dd7601dc5d2c9159b.tar.gz
podman-44fb431a3ced04c6b9e5d05dd7601dc5d2c9159b.tar.bz2
podman-44fb431a3ced04c6b9e5d05dd7601dc5d2c9159b.zip
Fix: Do not print error when parsing journald log fails
foramtError was written as err [NO NEW TESTS NEEDED] Signed-off-by: myml <wurongjie1@gmail.com>
-rw-r--r--libpod/container_log_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go
index 6b7cb4aa6..6150973ca 100644
--- a/libpod/container_log_linux.go
+++ b/libpod/container_log_linux.go
@@ -226,7 +226,7 @@ func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOption
}
if formatError != nil {
- logrus.Errorf("Failed to parse journald log entry: %v", err)
+ logrus.Errorf("Failed to parse journald log entry: %v", formatError)
return
}