mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 17:52:40 +00:00
logging: Remove duplicate arch field in vc
As of #521, the runtime now adds the `arch` log field so `virtcontainers` doesn't need to set it too. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
acdd0b8e68
commit
dfb758a82d
@ -23,12 +23,7 @@ var virtLog = logrus.FieldLogger(logrus.New())
|
|||||||
|
|
||||||
// SetLogger sets the logger for virtcontainers package.
|
// SetLogger sets the logger for virtcontainers package.
|
||||||
func SetLogger(logger logrus.FieldLogger) {
|
func SetLogger(logger logrus.FieldLogger) {
|
||||||
fields := logrus.Fields{
|
virtLog = logger.WithField("source", "virtcontainers")
|
||||||
"source": "virtcontainers",
|
|
||||||
"arch": runtime.GOARCH,
|
|
||||||
}
|
|
||||||
|
|
||||||
virtLog = logger.WithFields(fields)
|
|
||||||
deviceApi.SetLogger(virtLog)
|
deviceApi.SetLogger(virtLog)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user