mirror of https://github.com/status-im/op-geth.git
cmd: fix log contexts (#21077)
This commit is contained in:
parent
46698d7931
commit
677724af0c
|
@ -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)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue