Skip to content

Commit

Permalink
Fix Log Message
Browse files Browse the repository at this point in the history
stateImplName is a map and should be printed by %v.

Before:
stateImplConfigs=map[numBuckets:%!s(int=1000003) maxGroupingAtEachLevel:%!s(int=5) bucketCacheSize:%!s(int=100)]

After:
stateImplConfigs=map[numBuckets:1000003 maxGroupingAtEachLevel:5 bucketCacheSize:100]

Change-Id: Ie9b2df5af0e160308d759a7884f0118595dd8702
Signed-off-by: Yuta Namiki <y.namiki@gmail.com>
  • Loading branch information
Yuta Namiki committed Feb 24, 2017
1 parent 0addcfb commit 21c64b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ledger/statemgmt/state/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func loadConfig() {
stateImplName = stateImplType(viper.GetString("ledger.state.dataStructure.name"))
stateImplConfigs = viper.GetStringMap("ledger.state.dataStructure.configs")
deltaHistorySize = viper.GetInt("ledger.state.deltaHistorySize")
logger.Infof("Configurations loaded. stateImplName=[%s], stateImplConfigs=%s, deltaHistorySize=[%d]",
logger.Infof("Configurations loaded. stateImplName=[%s], stateImplConfigs=%v, deltaHistorySize=[%d]",
stateImplName, stateImplConfigs, deltaHistorySize)

if len(stateImplName) == 0 {
Expand Down

0 comments on commit 21c64b4

Please sign in to comment.