Skip to content

Commit

Permalink
[FAB-2244] Fixes broken debug logs with formatting.
Browse files Browse the repository at this point in the history
https://jira.hyperledger.org/browse/FAB-2244

Change-Id: Ie8cfeca53738029eba2fee9f60a823ffd2247b33
Signed-off-by: Tommy Back <tommy.back@iki.fi>
  • Loading branch information
murrekatt committed Feb 20, 2017
1 parent e829d2e commit 3c5b2ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3c5b2ff

Please sign in to comment.