forked from kata-containers/ksm-throttler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logging: Ensure errors are logged correctly
Ensure all errors are logged using the `logrus.WithError()` API. The current `logrus.Error(err)` calls will result in log messages containing the following fields: ``` level=error msg="..." ``` Whereas using `logrus.WithError()` will result in the expected: ``` level=error error="..." ``` Fixes kata-containers#26. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
- Loading branch information
1 parent
5f28890
commit 712d846
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters