ethdb/pebble: add `Errorf` function to panicLogger (#28491)

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.
pull/28505/head
Jim McDonald 1 year ago committed by GitHub
parent b77a9b127c
commit f7dde2a96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ethdb/pebble/pebble.go

@ -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...))
}

Loading…
Cancel
Save