Skip to content

Commit

Permalink
Fix: Do not print error when parsing journald log fails
Browse files Browse the repository at this point in the history
foramtError was written as err
[NO NEW TESTS NEEDED]

Signed-off-by: myml <wurongjie1@gmail.com>
  • Loading branch information
myml committed Feb 7, 2022
1 parent ab4af50 commit 44fb431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_log_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 44fb431

Please sign in to comment.