config: Show which config file loaded

Since the runtime can load its configuration from multiple locations,
add a log field to show which location was used.

Change log level from Debug to Info as this is generally useful
information.

Fixes #335.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2018-05-23 10:08:52 +01:00
parent 086d197f2c
commit 054a8ce3b7

View File

@ -521,7 +521,8 @@ func loadConfiguration(configPath string, ignoreLogging bool) (resolvedConfigPat
kataLog.WithFields( kataLog.WithFields(
logrus.Fields{ logrus.Fields{
"format": "TOML", "format": "TOML",
}).Debugf("loaded configuration") "file": resolved,
}).Info("loaded configuration")
} }
if err := updateRuntimeConfig(resolved, tomlConf, &config); err != nil { if err := updateRuntimeConfig(resolved, tomlConf, &config); err != nil {