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:
James O. D. Hunt 2018-07-26 14:00:31 +01:00
parent acdd0b8e68
commit dfb758a82d

View File

@ -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)
}