diff --git a/log/logger.go b/log/logger.go index 5426425c58..b3f3b9fc5c 100644 --- a/log/logger.go +++ b/log/logger.go @@ -32,7 +32,7 @@ const ( // for backward-compatibility LvlTrace = LevelTrace - LvlInfo = LevelInfo + LvlInfo = LevelInfo LvlDebug = LevelDebug ) @@ -95,7 +95,7 @@ func LevelString(l slog.Level) string { case slog.LevelWarn: return "warn" case slog.LevelError: - return "error" + return "eror" case LevelCrit: return "crit" default: diff --git a/p2p/simulations/adapters/exec.go b/p2p/simulations/adapters/exec.go index 28898ea4c6..45296f4707 100644 --- a/p2p/simulations/adapters/exec.go +++ b/p2p/simulations/adapters/exec.go @@ -35,13 +35,13 @@ import ( "time" "github.com/ethereum/go-ethereum/internal/reexec" - "golang.org/x/exp/slog" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethereum/go-ethereum/rpc" "github.com/gorilla/websocket" + "golang.org/x/exp/slog" ) func init() { diff --git a/p2p/simulations/adapters/types.go b/p2p/simulations/adapters/types.go index 754047bdf0..fb8463d221 100644 --- a/p2p/simulations/adapters/types.go +++ b/p2p/simulations/adapters/types.go @@ -25,7 +25,6 @@ import ( "os" "strconv" - "golang.org/x/exp/slog" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/internal/reexec" "github.com/ethereum/go-ethereum/log" @@ -35,6 +34,7 @@ import ( "github.com/ethereum/go-ethereum/p2p/enr" "github.com/ethereum/go-ethereum/rpc" "github.com/gorilla/websocket" + "golang.org/x/exp/slog" ) // Node represents a node in a simulation network which is created by a