Skip to content

Commit 9153c5a

Browse files
light client logging (#15927)
1 parent 26ce94e commit 9153c5a

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

beacon-chain/light-client/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ go_library(
66
"cache.go",
77
"helpers.go",
88
"lightclient.go",
9+
"log.go",
910
"store.go",
1011
],
1112
importpath = "github.com/OffchainLabs/prysm/v6/beacon-chain/light-client",

beacon-chain/light-client/log.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package light_client
2+
3+
import "github.com/sirupsen/logrus"
4+
5+
var log = logrus.WithField("prefix", "light-client")

beacon-chain/light-client/store.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
1515
"github.com/OffchainLabs/prysm/v6/time/slots"
1616
"github.com/pkg/errors"
17-
log "github.com/sirupsen/logrus"
1817
)
1918

2019
var ErrLightClientBootstrapNotFound = errors.New("light client bootstrap not found")

changelog/bastin_lc-prefix.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Ignored
2+
3+
- Add log prefix to the light-client package.

0 commit comments

Comments
 (0)