mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
using interface{} instead of any
This commit is contained in:
parent
0c436847ed
commit
a4740c0de4
1 changed files with 3 additions and 3 deletions
|
|
@ -173,8 +173,8 @@ func (l *logger) Write(level slog.Level, msg string, attrs ...any) {
|
|||
l.inner.Handler().Handle(context.Background(), r)
|
||||
}
|
||||
|
||||
func (l *logger) Log(level slog.Level, msg string, attrs ...any) {
|
||||
l.Write(level, msg, attrs...)
|
||||
func (l *logger) Log(level slog.Level, msg string, ctx ...interface{}) {
|
||||
l.Write(level, msg, ctx...)
|
||||
}
|
||||
|
||||
func (l *logger) With(ctx ...interface{}) Logger {
|
||||
|
|
@ -202,7 +202,7 @@ func (l *logger) Info(msg string, ctx ...interface{}) {
|
|||
l.Write(slog.LevelInfo, msg, ctx...)
|
||||
}
|
||||
|
||||
func (l *logger) Warn(msg string, ctx ...any) {
|
||||
func (l *logger) Warn(msg string, ctx ...interface{}) {
|
||||
l.Write(slog.LevelWarn, msg, ctx...)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue