From 03d8a855775642d38058182a7d5913407b3ea794 Mon Sep 17 00:00:00 2001 From: Tatsuya Sato Date: Wed, 15 Jan 2020 00:56:52 +0000 Subject: [PATCH] [FAB-17400] Improve log message for approved definition This patch adds information on the package ID for the approved chaincode definition in the peer logs The log message will be useful for Fabric admins to confirm the applied package ID immediately or later. Signed-off-by: Tatsuya Sato --- core/chaincode/lifecycle/lifecycle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chaincode/lifecycle/lifecycle.go b/core/chaincode/lifecycle/lifecycle.go index ffe3a41e89b..d71e7920122 100644 --- a/core/chaincode/lifecycle/lifecycle.go +++ b/core/chaincode/lifecycle/lifecycle.go @@ -447,7 +447,7 @@ func (ef *ExternalFunctions) ApproveChaincodeDefinitionForOrg(chname, ccname str return errors.WithMessage(err, "could not serialize chaincode package info to state") } - logger.Infof("Successfully approved definition %s, name '%s' on channel '%s'", cd, ccname, chname) + logger.Infof("Successfully approved definition %s, name '%s', package ID '%s', on channel '%s'", cd, ccname, packageID, chname) return nil }