From 9c6ecddaadf8a87964f4c21eb2da499ccde81620 Mon Sep 17 00:00:00 2001 From: NebojsaHorvat Date: Fri, 31 Jan 2025 11:48:24 +0100 Subject: [PATCH] solve log/slog interface problem --- log/format.go | 2 +- log/handler.go | 2 +- log/logger.go | 2 +- plugin/evm/log.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/log/format.go b/log/format.go index f9d1183395..59e6fc13fb 100644 --- a/log/format.go +++ b/log/format.go @@ -21,7 +21,7 @@ import ( "unicode/utf8" "github.com/holiman/uint256" - "golang.org/x/exp/slog" + "log/slog" ) const ( diff --git a/log/handler.go b/log/handler.go index 3b2dccbfba..02d8770396 100644 --- a/log/handler.go +++ b/log/handler.go @@ -10,7 +10,7 @@ import ( "time" "github.com/holiman/uint256" - "golang.org/x/exp/slog" + "log/slog" ) type discardHandler struct{} diff --git a/log/logger.go b/log/logger.go index a3e78748a9..d8b5b8490f 100644 --- a/log/logger.go +++ b/log/logger.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "golang.org/x/exp/slog" + "log/slog" ) const errorKey = "LOG_ERROR" diff --git a/plugin/evm/log.go b/plugin/evm/log.go index 9eb00fc7be..cff1e8741f 100644 --- a/plugin/evm/log.go +++ b/plugin/evm/log.go @@ -12,7 +12,7 @@ import ( "github.com/ava-labs/coreth/log" gethlog "github.com/ethereum/go-ethereum/log" - "golang.org/x/exp/slog" + "log/slog" ) type CorethLogger struct {