mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 00:07:16 +00:00
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:
parent
086d197f2c
commit
054a8ce3b7
@ -521,7 +521,8 @@ func loadConfiguration(configPath string, ignoreLogging bool) (resolvedConfigPat
|
||||
kataLog.WithFields(
|
||||
logrus.Fields{
|
||||
"format": "TOML",
|
||||
}).Debugf("loaded configuration")
|
||||
"file": resolved,
|
||||
}).Info("loaded configuration")
|
||||
}
|
||||
|
||||
if err := updateRuntimeConfig(resolved, tomlConf, &config); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user