Corrections to logged error messages. (#997)

This commit is contained in:
Satpal 2020-05-13 20:59:07 +01:00 committed by GitHub
parent c8567843ab
commit 1c7901b11b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -927,7 +927,7 @@ func GenDoc(ctx *cli.Context) {
if data, err := json.MarshalIndent(v, "", " "); err == nil {
output = append(output, fmt.Sprintf("### %s\n\n%s\n\nExample:\n```json\n%s\n```", name, desc, data))
} else {
log.Error("Error generating output", err)
log.Error("Error generating output", "err", err)
}
}
)

View File

@ -179,7 +179,7 @@ func (w *wizard) importGenesis() {
// Parse the genesis file and inject it successful
var genesis core.Genesis
if err := json.NewDecoder(reader).Decode(&genesis); err != nil {
log.Error("Invalid genesis spec: %v", err)
log.Error("Invalid genesis spec", "err", err)
return
}
log.Info("Imported genesis block")

View File

@ -870,7 +870,7 @@ func (pm *ProtocolManager) eventLoop() {
var block types.Block
err := rlp.DecodeBytes(entry.Data, &block)
if err != nil {
log.Error("error decoding block: ", err)
log.Error("error decoding block", "err", err)
}
if pm.blockchain.HasBlock(block.Hash(), block.NumberU64()) {