Skip to content

Commit f7dde2a

Browse files
authored
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.
1 parent b77a9b1 commit f7dde2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ethdb/pebble/pebble.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ type panicLogger struct{}
127127
func (l panicLogger) Infof(format string, args ...interface{}) {
128128
}
129129

130+
func (l panicLogger) Errorf(format string, args ...interface{}) {
131+
}
132+
130133
func (l panicLogger) Fatalf(format string, args ...interface{}) {
131134
panic(errors.Errorf("fatal: "+format, args...))
132135
}

0 commit comments

Comments
 (0)