mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +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.
|
||||
func SetLogger(logger logrus.FieldLogger) {
|
||||
fields := logrus.Fields{
|
||||
"source": "virtcontainers",
|
||||
"arch": runtime.GOARCH,
|
||||
}
|
||||
|
||||
virtLog = logger.WithFields(fields)
|
||||
virtLog = logger.WithField("source", "virtcontainers")
|
||||
deviceApi.SetLogger(virtLog)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user