Skip to content

Commit

Permalink
config: Show which config file loaded
Browse files Browse the repository at this point in the history
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 kata-containers#335.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed May 23, 2018
1 parent 086d197 commit 054a8ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 054a8ce

Please sign in to comment.