diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 473026606f..6b6ead7f12 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -295,6 +295,7 @@ func (s *PrivateAccountAPI) DeriveAccount(url string, path string, pin *bool) (a func (s *PrivateAccountAPI) NewAccount(password string) (common.Address, error) { acc, err := fetchKeystore(s.am).NewAccount(password) if err == nil { + log.Info("Your new key is generated. Please backup the key file", "path", acc.URL.Path) return acc.Address, nil } return common.Address{}, err diff --git a/signer/core/api.go b/signer/core/api.go index 671fbf79bc..0d18ac6b09 100644 --- a/signer/core/api.go +++ b/signer/core/api.go @@ -392,6 +392,7 @@ func (api *SignerAPI) New(ctx context.Context) (common.Address, error) { } else { // No error acc, err := be[0].(*keystore.KeyStore).NewAccount(resp.Text) + log.Info("Your new key is generated. Please backup the key file", "path", acc.URL.Path) return acc.Address, err } }