Skip to content

Commit

Permalink
[FAB-17400] Improve log message for approved definition
Browse files Browse the repository at this point in the history
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 <Tatsuya.Sato@hal.hitachi.com>
  • Loading branch information
satota2 authored and denyeart committed Jan 20, 2020
1 parent ca35d68 commit 03d8a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/lifecycle/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 03d8a85

Please sign in to comment.