Skip to content

Commit

Permalink
chore: update x/slog import to log/slog
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Feb 13, 2024
1 parent 3735749 commit d993d3b
Show file tree
Hide file tree
Showing 50 changed files with 48 additions and 95 deletions.
2 changes: 1 addition & 1 deletion contribs/gnodev/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/fsnotify/fsnotify v1.7.0
github.com/gnolang/gno v0.0.0-00010101000000-000000000000
go.uber.org/zap v1.24.0
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3
golang.org/x/term v0.16.0
)

Expand Down Expand Up @@ -60,6 +59,7 @@ require (
go.uber.org/multierr v1.10.0 // indirect
go.uber.org/zap/exp v0.1.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion contribs/gnodev/pkg/dev/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package dev
import (
"context"
"fmt"
"log/slog"

"github.com/gnolang/gno/gno.land/pkg/gnoland"
"github.com/gnolang/gno/gno.land/pkg/integration"
Expand All @@ -16,7 +17,6 @@ import (
bft "github.com/gnolang/gno/tm2/pkg/bft/types"
"github.com/gnolang/gno/tm2/pkg/crypto"
"github.com/gnolang/gno/tm2/pkg/std"
"golang.org/x/exp/slog"
// backup "github.com/gnolang/tx-archive/backup/client"
// restore "github.com/gnolang/tx-archive/restore/client"
)
Expand Down
1 change: 0 additions & 1 deletion contribs/gnokeykc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ require (
go.etcd.io/bbolt v1.3.8 // indirect
go.opencensus.io v0.22.5 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions contribs/gnokeykc/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gno.land/pkg/gnoland/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ package gnoland

import (
"fmt"
"log/slog"
"path/filepath"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/gno.land/pkg/sdk/vm"
"github.com/gnolang/gno/gnovm/pkg/gnoenv"
"github.com/gnolang/gno/tm2/pkg/amino"
Expand Down
3 changes: 1 addition & 2 deletions gno.land/pkg/gnoland/node_inmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ package gnoland

import (
"fmt"
"log/slog"
"sync"
"time"

"golang.org/x/exp/slog"

abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
tmcfg "github.com/gnolang/gno/tm2/pkg/bft/config"
"github.com/gnolang/gno/tm2/pkg/bft/node"
Expand Down
3 changes: 1 addition & 2 deletions gno.land/pkg/gnoweb/gnoweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ import (
"fmt"
"io"
"io/fs"
"log/slog"
"net/http"
"os"
"path/filepath"
"runtime"
"strings"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/amino"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
"github.com/gnolang/gno/tm2/pkg/bft/rpc/client"
Expand Down
3 changes: 1 addition & 2 deletions gno.land/pkg/integration/testing_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import (
"errors"
"fmt"
"hash/crc32"
"log/slog"
"os"
"path/filepath"
"strconv"
"strings"
"testing"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/gno.land/pkg/gnoland"
"github.com/gnolang/gno/gno.land/pkg/keyscli"
"github.com/gnolang/gno/gno.land/pkg/log"
Expand Down
3 changes: 1 addition & 2 deletions gno.land/pkg/integration/testing_node.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package integration

import (
"log/slog"
"path/filepath"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/gno.land/pkg/gnoland"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
tmcfg "github.com/gnolang/gno/tm2/pkg/bft/config"
Expand Down
3 changes: 1 addition & 2 deletions gno.land/pkg/log/zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ package log

import (
"io"

"golang.org/x/exp/slog"
"log/slog"

"go.uber.org/zap"
"go.uber.org/zap/exp/zapslog"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ require (
go.uber.org/zap v1.24.0
go.uber.org/zap/exp v0.1.0
golang.org/x/crypto v0.18.0
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
golang.org/x/mod v0.14.0
golang.org/x/net v0.20.0
golang.org/x/term v0.16.0
Expand Down
1 change: 0 additions & 1 deletion misc/loop/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ require (
go.uber.org/zap v1.26.0 // indirect
go.uber.org/zap/exp v0.2.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions misc/loop/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tm2/pkg/bft/abci/example/kvstore/persistent_kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package kvstore
import (
"encoding/base64"
"fmt"
"log/slog"
"strconv"
"strings"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/amino"
"github.com/gnolang/gno/tm2/pkg/bft/abci/example/errors"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/blockchain/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ package blockchain
import (
"errors"
"fmt"
"log/slog"
"math"
"sync"
"sync/atomic"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/bft/types"
"github.com/gnolang/gno/tm2/pkg/flow"
"github.com/gnolang/gno/tm2/pkg/log"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/blockchain/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package blockchain
import (
"errors"
"fmt"
"log/slog"
"reflect"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/amino"
sm "github.com/gnolang/gno/tm2/pkg/bft/state"
"github.com/gnolang/gno/tm2/pkg/bft/store"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/blockchain/reactor_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package blockchain

import (
"log/slog"
"os"
"sort"
"testing"
"time"

"golang.org/x/exp/slog"

"github.com/stretchr/testify/assert"

abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package consensus
import (
"bytes"
"fmt"
"log/slog"
"os"
"path"
"path/filepath"
Expand All @@ -11,8 +12,6 @@ import (
"testing"
"time"

"golang.org/x/exp/slog"

abcicli "github.com/gnolang/gno/tm2/pkg/bft/abci/client"
"github.com/gnolang/gno/tm2/pkg/bft/abci/example/counter"
"github.com/gnolang/gno/tm2/pkg/bft/abci/example/kvstore"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package consensus

import (
"fmt"
"log/slog"
"reflect"
"sync"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/amino"
cstypes "github.com/gnolang/gno/tm2/pkg/bft/consensus/types"
sm "github.com/gnolang/gno/tm2/pkg/bft/state"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/reactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package consensus

import (
"fmt"
"log/slog"
"sync"
"testing"
"time"

"golang.org/x/exp/slog"

"github.com/stretchr/testify/assert"

"github.com/gnolang/gno/tm2/pkg/amino"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"reflect"
"time"

"golang.org/x/exp/slog"

abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
cstypes "github.com/gnolang/gno/tm2/pkg/bft/consensus/types"
"github.com/gnolang/gno/tm2/pkg/bft/mempool/mock"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"os"
"path/filepath"
"runtime"
"sort"
"testing"
"time"

"golang.org/x/exp/slog"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import (
"bytes"
goerrors "errors"
"fmt"
"log/slog"
"reflect"
"runtime/debug"
"sync"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/amino"
cnscfg "github.com/gnolang/gno/tm2/pkg/bft/consensus/config"
cstypes "github.com/gnolang/gno/tm2/pkg/bft/consensus/types"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/ticker.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package consensus

import (
"log/slog"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/service"
)

Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/consensus/wal_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import (
"bytes"
"fmt"
"io"
"log/slog"
"path/filepath"
"testing"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/bft/abci/example/kvstore"
cfg "github.com/gnolang/gno/tm2/pkg/bft/config"
"github.com/gnolang/gno/tm2/pkg/bft/mempool/mock"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/mempool/clist_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import (
"container/list"
"crypto/sha256"
"fmt"
"log/slog"
"sync"
"sync/atomic"
"time"

"golang.org/x/exp/slog"

auto "github.com/gnolang/gno/tm2/pkg/autofile"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
cfg "github.com/gnolang/gno/tm2/pkg/bft/mempool/config"
Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/mempool/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ package mempool

import (
"fmt"
"log/slog"
"math"
"reflect"
"sync"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/amino"
cfg "github.com/gnolang/gno/tm2/pkg/bft/mempool/config"
"github.com/gnolang/gno/tm2/pkg/bft/types"
Expand Down
7 changes: 3 additions & 4 deletions tm2/pkg/bft/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ package node

import (
"fmt"
"log/slog"
"net"
"net/http"
_ "net/http/pprof" //nolint:gosec
"net/http" //nolint:gosec
_ "net/http/pprof"
"strings"
"sync"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/bft/state/eventstore/file"
"github.com/rs/cors"

Expand Down
3 changes: 1 addition & 2 deletions tm2/pkg/bft/privval/signer_dialer_endpoint.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package privval

import (
"log/slog"
"time"

"golang.org/x/exp/slog"

"github.com/gnolang/gno/tm2/pkg/service"
)

Expand Down
Loading

0 comments on commit d993d3b

Please sign in to comment.