Skip to content

Commit 3c5b2ff

Browse files
committed
[FAB-2244] Fixes broken debug logs with formatting.
https://jira.hyperledger.org/browse/FAB-2244 Change-Id: Ie8cfeca53738029eba2fee9f60a823ffd2247b33 Signed-off-by: Tommy Back <[email protected]>
1 parent e829d2e commit 3c5b2ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/peer/peer.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,18 @@ func Initialize(init func(string)) {
9292
peerLogger.Infof("Loading chain %s", cid)
9393
if ledger, err = ledgermgmt.OpenLedger(cid); err != nil {
9494
peerLogger.Warningf("Failed to load ledger %s(%s)", cid, err)
95-
peerLogger.Debug("Error while loading ledger %s with message %s. We continue to the next ledger rather than abort.", cid, err)
95+
peerLogger.Debugf("Error while loading ledger %s with message %s. We continue to the next ledger rather than abort.", cid, err)
9696
continue
9797
}
9898
if cb, err = getCurrConfigBlockFromLedger(ledger); err != nil {
9999
peerLogger.Warningf("Failed to find config block on ledger %s(%s)", cid, err)
100-
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)
100+
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)
101101
continue
102102
}
103103
// Create a chain if we get a valid ledger with config block
104104
if err = createChain(cid, ledger, cb); err != nil {
105105
peerLogger.Warningf("Failed to load chain %s(%s)", cid, err)
106-
peerLogger.Debug("Error reloading chain %s with message %s. We continue to the next chain rather than abort.", cid, err)
106+
peerLogger.Debugf("Error reloading chain %s with message %s. We continue to the next chain rather than abort.", cid, err)
107107
continue
108108
}
109109

0 commit comments

Comments
 (0)