Unverified Commit 677724af authored by Satpal's avatar Satpal Committed by GitHub

cmd: fix log contexts (#21077)

parent 46698d79
...@@ -978,7 +978,7 @@ func GenDoc(ctx *cli.Context) { ...@@ -978,7 +978,7 @@ func GenDoc(ctx *cli.Context) {
if data, err := json.MarshalIndent(v, "", " "); err == nil { 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)) output = append(output, fmt.Sprintf("### %s\n\n%s\n\nExample:\n```json\n%s\n```", name, desc, data))
} else { } else {
log.Error("Error generating output", err) log.Error("Error generating output", "err", err)
} }
} }
) )
......
...@@ -179,7 +179,7 @@ func (w *wizard) importGenesis() { ...@@ -179,7 +179,7 @@ func (w *wizard) importGenesis() {
// Parse the genesis file and inject it successful // Parse the genesis file and inject it successful
var genesis core.Genesis var genesis core.Genesis
if err := json.NewDecoder(reader).Decode(&genesis); err != nil { if err := json.NewDecoder(reader).Decode(&genesis); err != nil {
log.Error("Invalid genesis spec: %v", err) log.Error("Invalid genesis spec", "err", err)
return return
} }
log.Info("Imported genesis block") log.Info("Imported genesis block")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment