Skip to content

Commit 54f6396

Browse files
run the log gen script
1 parent 2a23dc7 commit 54f6396

File tree

165 files changed

+1114
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+1114
-508
lines changed

api/apiutil/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go_library(
55
srcs = [
66
"common.go",
77
"header.go",
8+
"log.go",
89
],
910
importpath = "github.com/OffchainLabs/prysm/v7/api/apiutil",
1011
visibility = ["//visibility:public"],

api/apiutil/header.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import (
55
"sort"
66
"strconv"
77
"strings"
8-
9-
log "github.com/sirupsen/logrus"
108
)
119

1210
type mediaRange struct {

api/apiutil/log.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/beacon/log.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/builder/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ go_library(
66
"bid.go",
77
"client.go",
88
"errors.go",
9+
"log.go",
910
"types.go",
1011
],
1112
importpath = "github.com/OffchainLabs/prysm/v7/api/client/builder",
@@ -63,6 +64,5 @@ go_test(
6364
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
6465
"@com_github_pkg_errors//:go_default_library",
6566
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
66-
"@com_github_sirupsen_logrus//:go_default_library",
6767
],
6868
)

api/client/builder/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
2626
"github.com/OffchainLabs/prysm/v7/runtime/version"
2727
"github.com/pkg/errors"
28-
log "github.com/sirupsen/logrus"
28+
"github.com/sirupsen/logrus"
2929
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
3030
)
3131

@@ -70,7 +70,7 @@ type requestLogger struct{}
7070
func (*requestLogger) observe(r *http.Request) (e error) {
7171
b := bytes.NewBuffer(nil)
7272
if r.Body == nil {
73-
log.WithFields(log.Fields{
73+
log.WithFields(logrus.Fields{
7474
"bodyBase64": "(nil value)",
7575
"url": r.URL.String(),
7676
}).Info("Builder http request")
@@ -87,7 +87,7 @@ func (*requestLogger) observe(r *http.Request) (e error) {
8787
return err
8888
}
8989
r.Body = io.NopCloser(b)
90-
log.WithFields(log.Fields{
90+
log.WithFields(logrus.Fields{
9191
"bodyBase64": string(body),
9292
"url": r.URL.String(),
9393
}).Info("Builder http request")

api/client/builder/client_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/OffchainLabs/prysm/v7/testing/assert"
2424
"github.com/OffchainLabs/prysm/v7/testing/require"
2525
"github.com/OffchainLabs/prysm/v7/testing/util"
26-
log "github.com/sirupsen/logrus"
2726
)
2827

2928
type roundtrip func(*http.Request) (*http.Response, error)

api/client/builder/log.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/event/BUILD.bazel

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ go_library(
44
name = "go_default_library",
55
srcs = [
66
"event_stream.go",
7+
"log.go",
78
"utils.go",
89
],
910
importpath = "github.com/OffchainLabs/prysm/v7/api/client/event",
@@ -23,8 +24,5 @@ go_test(
2324
"utils_test.go",
2425
],
2526
embed = [":go_default_library"],
26-
deps = [
27-
"//testing/require:go_default_library",
28-
"@com_github_sirupsen_logrus//:go_default_library",
29-
],
27+
deps = ["//testing/require:go_default_library"],
3028
)

api/client/event/event_stream.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"github.com/OffchainLabs/prysm/v7/api"
1111
"github.com/OffchainLabs/prysm/v7/api/client"
1212
"github.com/pkg/errors"
13-
log "github.com/sirupsen/logrus"
1413
)
1514

1615
const (

0 commit comments

Comments
 (0)