Skip to content

Commit 6426257

Browse files
authored
eth/tracers/logger: rename WriteTo to Write (#33227)
1 parent 9bab01b commit 6426257

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eth/tracers/logger/logger.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func (s *StructLog) ErrorString() string {
9494
return ""
9595
}
9696

97-
// WriteTo writes the human-readable log data into the supplied writer.
98-
func (s *StructLog) WriteTo(writer io.Writer) {
97+
// Write writes the human-readable log data into the supplied writer.
98+
func (s *StructLog) Write(writer io.Writer) {
9999
fmt.Fprintf(writer, "%-16spc=%08d gas=%v cost=%v", s.Op, s.Pc, s.Gas, s.GasCost)
100100
if s.Err != nil {
101101
fmt.Fprintf(writer, " ERROR: %v", s.Err)
@@ -324,7 +324,7 @@ func (l *StructLogger) OnOpcode(pc uint64, opcode byte, gas, cost uint64, scope
324324
l.logs = append(l.logs, entry)
325325
return
326326
}
327-
log.WriteTo(l.writer)
327+
log.Write(l.writer)
328328
}
329329

330330
// OnExit is called a call frame finishes processing.
@@ -405,7 +405,7 @@ func (l *StructLogger) Output() []byte { return l.output }
405405
// @deprecated
406406
func WriteTrace(writer io.Writer, logs []StructLog) {
407407
for _, log := range logs {
408-
log.WriteTo(writer)
408+
log.Write(writer)
409409
}
410410
}
411411

0 commit comments

Comments
 (0)