mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-31 15:31:20 +00:00
Log out important directories for validator client (#5653)
* . * print in beacon-chain, validator and slasher * add source and build * fix * fix * fix * fix * run gazelle * change log * change log file * change log file * change log message * change log message * Merge branch 'master' into Display-key-paths-at-startup * change the logging code place * change datadir to out of scoop * Merge branch 'master' into Display-key-paths-at-startup * Merge branch 'master' into Display-key-paths-at-startup
This commit is contained in:
parent
fdad7e67b0
commit
e1ac1d3d80
@ -45,6 +45,7 @@ func NewKeystore(input string) (KeyManager, string, error) {
|
||||
if opts.Path == "" {
|
||||
opts.Path = accounts.DefaultValidatorDir()
|
||||
}
|
||||
log.WithField("keystorePath", opts.Path).Info("Checking validator keys")
|
||||
|
||||
exists, err := accounts.Exists(opts.Path)
|
||||
if err != nil {
|
||||
|
@ -90,12 +90,12 @@ func NewValidatorClient(ctx *cli.Context) (*ValidatorClient, error) {
|
||||
|
||||
clearFlag := ctx.Bool(cmd.ClearDB.Name)
|
||||
forceClearFlag := ctx.Bool(cmd.ForceClearDB.Name)
|
||||
dataDir := ctx.String(cmd.DataDirFlag.Name)
|
||||
if clearFlag || forceClearFlag {
|
||||
pubkeys, err := keyManager.FetchValidatingKeys()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
dataDir := ctx.String(cmd.DataDirFlag.Name)
|
||||
if dataDir == "" {
|
||||
dataDir = cmd.DefaultDataDir()
|
||||
}
|
||||
@ -103,6 +103,7 @@ func NewValidatorClient(ctx *cli.Context) (*ValidatorClient, error) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
log.WithField("databasePath", dataDir).Info("Checking DB")
|
||||
|
||||
if err := ValidatorClient.registerPrometheusService(ctx); err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user