Logging in preInit works just fine locally; pushing to test on the CI

This commit is contained in:
Zahary Karadjov 2019-03-28 13:22:11 +02:00 committed by zah
parent 6d4470a8c8
commit e0d8bf9e99
1 changed files with 5 additions and 6 deletions

View File

@ -578,12 +578,11 @@ proc preInit*(
let
blockRoot = signed_root(blck)
# TODO Error: undeclared identifier: 'log'
# notice "Creating new database from snapshot",
# blockRoot = shortLog(blockRoot),
# stateRoot = shortLog(blck.state_root),
# fork = state.fork,
# validators = state.validator_registry.len()
notice "Creating new database from snapshot",
blockRoot = shortLog(blockRoot),
stateRoot = shortLog(blck.state_root),
fork = state.fork,
validators = state.validator_registry.len()
db.putState(state)
db.putBlock(blck)