From 054a8ce3b7c7f1c4e5dc129e8cc877dc69981b5e Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Wed, 23 May 2018 10:08:52 +0100 Subject: [PATCH] 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 --- cli/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/config.go b/cli/config.go index fabb8a70b4..cc6e9bb006 100644 --- a/cli/config.go +++ b/cli/config.go @@ -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 {