mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-02-17 00:12:15 -05:00
**What does this PR do? Why is it needed?** This PR adds the `cmd` directory and all it's subcategories to the `hack/gen-logs.sh`. meaning that they will now have a `log.go` file and a `package` field. see the list of added packages below. some of them had different names, which has been added to the `prefixReplacements` map. packages added: "cmd" "cmd/validator/web" "cmd/validator/wallet" "cmd/validator/slashing-protection" "cmd/validator/db" "cmd/validator/accounts" "cmd/prysmctl" "cmd/prysmctl/weaksubjectivity" "cmd/prysmctl/validator" "cmd/prysmctl/testnet" "cmd/prysmctl/p2p" "cmd/prysmctl/db" "cmd/prysmctl/checkpointsync" "cmd/client-stats" "cmd/beacon-chain" "cmd/beacon-chain/storage" "cmd/beacon-chain/jwt" "cmd/beacon-chain/genesis" "cmd/beacon-chain/flags" "cmd/beacon-chain/db"
10 lines
493 B
Go
10 lines
493 B
Go
// Code generated by hack/gen-logs.sh; DO NOT EDIT.
|
|
// This file is created and regenerated automatically. Anything added here might get removed.
|
|
package main
|
|
|
|
import "github.com/sirupsen/logrus"
|
|
|
|
// The prefix for logs from this package will be the text after the last slash in the package path.
|
|
// If you wish to change this, you should add your desired name in the runtime/logging/logrus-prefixed-formatter/prefix-replacement.go file.
|
|
var log = logrus.WithField("package", "cmd/validator")
|