From 7ec63f092fbd41214ab4fffde908919e7583047d Mon Sep 17 00:00:00 2001 From: myml Date: Mon, 7 Feb 2022 05:27:05 +0000 Subject: Fix: Do not print error when parsing journald log fails foramtError was written as err [NO NEW TESTS NEEDED] Signed-off-by: myml --- libpod/container_log_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3-54-g00ecf