From e388e7be6f70aa08aaf41209edd67b572271d528 Mon Sep 17 00:00:00 2001 From: "Gomez Goiri, Aitor" <aitor.gomez@tecnalia.com> Date: Wed, 2 Mar 2022 16:44:55 +0100 Subject: [PATCH] Fixing log message --- chaincode/controller/stats/stub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaincode/controller/stats/stub.go b/chaincode/controller/stats/stub.go index e20bcb7..eedc0ac 100644 --- a/chaincode/controller/stats/stub.go +++ b/chaincode/controller/stats/stub.go @@ -190,7 +190,7 @@ func RegisterSale(stub shared.LedgerBuildrStubInterface, quantity uint32, price orgStats.UpgradeSell(quantity, price, units) orgStats.UpgradeSell(quantity, price, units) - log.Debug(fmt.Sprintf("Sale registered in stats (quantity: %s, price: %s, units: %s)", quantity, price, units)) + log.Debug(fmt.Sprintf("Sale registered in stats (quantity: %d %s, price: %.2f €)", quantity, units, price)) err = upgradeStats(stub, globalStats, orgStats) if err != nil { -- GitLab