From e91d4f87cb4c14fccb265719b5c5fc91a552a2ac Mon Sep 17 00:00:00 2001 From: SatpalSandhu61 Date: Wed, 13 May 2020 15:07:58 +0100 Subject: [PATCH] Corrections to logged error messages. --- cmd/clef/main.go | 2 +- cmd/puppeth/wizard_genesis.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/clef/main.go b/cmd/clef/main.go index b9e96c8fa52b..d1ecd53b4138 100644 --- a/cmd/clef/main.go +++ b/cmd/clef/main.go @@ -978,7 +978,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) } } ) diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go index ab3e2247b6ec..8832de13abf7 100644 --- a/cmd/puppeth/wizard_genesis.go +++ b/cmd/puppeth/wizard_genesis.go @@ -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")