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.
This commit is contained in:
Jim McDonald authored and GitHub committed 2023-11-09 15:15:22 +01:00
1 parent b77a9b127c
commit f7dde2a96c
1 file changed
+3
+3
View File
@@ -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...))
}