diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-19 18:39:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 18:39:17 +0800 |
commit | 1f7491df37caf974ffa0c824c4c02a8fe2aafcd9 (patch) | |
tree | 55c6e653c3d78ab34e3fbe8627ba1c0a62cb53a8 /simulation | |
parent | bec97aadfa95ebb42ef042bd53c7976ae410c496 (diff) | |
download | tangerine-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar tangerine-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.gz tangerine-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.bz2 tangerine-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.lz tangerine-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.xz tangerine-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.zst tangerine-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.zip |
core: initial commit for logger (#228)
* Replace "log.*" with logger.
* Add simple logger to log with log package.
* Add debug logs to all calls to these interfaces:
- core.Application
- core.Governance
- core.Network
* Add Stringer to these types:
- types.DKGComplaint
- types.AgreementResult
- types.DKGMasterPublicKey
- types.DKGFinalize
Diffstat (limited to 'simulation')
-rw-r--r-- | simulation/node.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/simulation/node.go b/simulation/node.go index 0a59994..5919b3e 100644 --- a/simulation/node.go +++ b/simulation/node.go @@ -100,7 +100,13 @@ func (n *node) run(serverEndpoint interface{}, dMoment time.Time) { } } n.consensus = core.NewConsensus( - dMoment, n.app, n.gov, n.db, n.netModule, n.prvKey) + dMoment, + n.app, + n.gov, + n.db, + n.netModule, + n.prvKey, + &common.SimpleLogger{}) go n.consensus.Run(&types.Block{}) // Blocks forever. |