From 3c5b2ff64699455ce1ff1e0474390234b8deea0b Mon Sep 17 00:00:00 2001 From: Tommy Back Date: Wed, 15 Feb 2017 13:01:43 +0000 Subject: [PATCH] [FAB-2244] Fixes broken debug logs with formatting. https://jira.hyperledger.org/browse/FAB-2244 Change-Id: Ie8cfeca53738029eba2fee9f60a823ffd2247b33 Signed-off-by: Tommy Back --- core/peer/peer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/peer/peer.go b/core/peer/peer.go index 293fc40089e..4d346e1ee96 100644 --- a/core/peer/peer.go +++ b/core/peer/peer.go @@ -92,18 +92,18 @@ func Initialize(init func(string)) { peerLogger.Infof("Loading chain %s", cid) if ledger, err = ledgermgmt.OpenLedger(cid); err != nil { peerLogger.Warningf("Failed to load ledger %s(%s)", cid, err) - peerLogger.Debug("Error while loading ledger %s with message %s. We continue to the next ledger rather than abort.", cid, err) + peerLogger.Debugf("Error while loading ledger %s with message %s. We continue to the next ledger rather than abort.", cid, err) continue } if cb, err = getCurrConfigBlockFromLedger(ledger); err != nil { peerLogger.Warningf("Failed to find config block on ledger %s(%s)", cid, err) - peerLogger.Debug("Error while looking for config block on ledger %s with message %s. We continue to the next ledger rather than abort.", cid, err) + peerLogger.Debugf("Error while looking for config block on ledger %s with message %s. We continue to the next ledger rather than abort.", cid, err) continue } // Create a chain if we get a valid ledger with config block if err = createChain(cid, ledger, cb); err != nil { peerLogger.Warningf("Failed to load chain %s(%s)", cid, err) - peerLogger.Debug("Error reloading chain %s with message %s. We continue to the next chain rather than abort.", cid, err) + peerLogger.Debugf("Error reloading chain %s with message %s. We continue to the next chain rather than abort.", cid, err) continue }