From b5430b2d67eb40ea2bb3650461f1cc481851ce5e Mon Sep 17 00:00:00 2001 From: Gregory Haskins Date: Wed, 26 Apr 2017 12:44:54 -0400 Subject: [PATCH] [FAB-3428] configtxgen: Report selected configuration This patch simply adds an INFO level log message to indicate which configuration was ultimately selected. This may be helpful to the user since the process for selecting the config may be automated by the software. This could be confusing if the user believes one configuration was in effect when the system loaded an alternate. Fixes FAB-3428 Change-Id: I085c4b719c85a9d7d4af86843f89ac819da9b6e4 Signed-off-by: Greg Haskins --- common/configtx/tool/localconfig/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/configtx/tool/localconfig/config.go b/common/configtx/tool/localconfig/config.go index a6114963d04..015456ad464 100644 --- a/common/configtx/tool/localconfig/config.go +++ b/common/configtx/tool/localconfig/config.go @@ -194,6 +194,8 @@ func Load(profile string) *Profile { result.completeInitialization(filepath.Dir(config.ConfigFileUsed())) + logger.Infof("Loaded configuration: %s", config.ConfigFileUsed()) + return result }