From 2ef5a39c60bcfe2824ccf6d949520bcb5271526c Mon Sep 17 00:00:00 2001 From: Gabor Hosszu Date: Fri, 12 Aug 2016 09:02:54 +0200 Subject: [PATCH] Print out results in peer Change-Id: I65cb38edc245079d6eec0ae49a24dd6379ff1c28 Signed-off-by: Gabor Hosszu --- peer/chaincode/common.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/peer/chaincode/common.go b/peer/chaincode/common.go index d2868ecf49a..8d8fafc63e1 100755 --- a/peer/chaincode/common.go +++ b/peer/chaincode/common.go @@ -151,12 +151,13 @@ func chaincodeInvokeOrQuery(cmd *cobra.Command, args []string, invoke bool) (err err = errors.New("Options --raw (-r) and --hex (-x) are not compatible\n") return } + fmt.Print("Query Result (Raw): ") os.Stdout.Write(resp.Msg) } else { if chaincodeQueryHex { - logger.Debugf("%x\n", resp.Msg) + fmt.Printf("Query Result: %x\n", resp.Msg) } else { - logger.Debug(string(resp.Msg)) + fmt.Printf("Query Result: %s\n", string(resp.Msg)) } } }