Skip to content

Commit

Permalink
ethdb/pebble: add Errorf function to panicLogger (#28491)
Browse files Browse the repository at this point in the history
cockroachdb/pebble@422dce9 added Errorf to the Logger interface, this change makes it possible to compile geth with that version of pebble by adding the corresponding method to panicLogger.
  • Loading branch information
mcdee authored Nov 9, 2023
1 parent b77a9b1 commit f7dde2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ethdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ type panicLogger struct{}
func (l panicLogger) Infof(format string, args ...interface{}) {
}

func (l panicLogger) Errorf(format string, args ...interface{}) {
}

func (l panicLogger) Fatalf(format string, args ...interface{}) {
panic(errors.Errorf("fatal: "+format, args...))
}
Expand Down

0 comments on commit f7dde2a

Please sign in to comment.