Skip to content

Commit 2ef5a39

Browse files
committed
Print out results in peer
Change-Id: I65cb38edc245079d6eec0ae49a24dd6379ff1c28 Signed-off-by: Gabor Hosszu <[email protected]>
1 parent 457635a commit 2ef5a39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

peer/chaincode/common.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,13 @@ func chaincodeInvokeOrQuery(cmd *cobra.Command, args []string, invoke bool) (err
151151
err = errors.New("Options --raw (-r) and --hex (-x) are not compatible\n")
152152
return
153153
}
154+
fmt.Print("Query Result (Raw): ")
154155
os.Stdout.Write(resp.Msg)
155156
} else {
156157
if chaincodeQueryHex {
157-
logger.Debugf("%x\n", resp.Msg)
158+
fmt.Printf("Query Result: %x\n", resp.Msg)
158159
} else {
159-
logger.Debug(string(resp.Msg))
160+
fmt.Printf("Query Result: %s\n", string(resp.Msg))
160161
}
161162
}
162163
}

0 commit comments

Comments
 (0)