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:
Shawki Sukkar 2020-05-01 02:17:06 +03:00 committed by GitHub
parent fdad7e67b0
commit e1ac1d3d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -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