Skip to content

Commit 677724a

Browse files
cmd: fix log contexts (#21077)
1 parent 46698d7 commit 677724a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎cmd/clef/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ func GenDoc(ctx *cli.Context) {
978978
if data, err := json.MarshalIndent(v, "", " "); err == nil {
979979
output = append(output, fmt.Sprintf("### %s\n\n%s\n\nExample:\n```json\n%s\n```", name, desc, data))
980980
} else {
981-
log.Error("Error generating output", err)
981+
log.Error("Error generating output", "err", err)
982982
}
983983
}
984984
)

‎cmd/puppeth/wizard_genesis.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (w *wizard) importGenesis() {
179179
// Parse the genesis file and inject it successful
180180
var genesis core.Genesis
181181
if err := json.NewDecoder(reader).Decode(&genesis); err != nil {
182-
log.Error("Invalid genesis spec: %v", err)
182+
log.Error("Invalid genesis spec", "err", err)
183183
return
184184
}
185185
log.Info("Imported genesis block")

0 commit comments

Comments
 (0)