getLegacyDatabaseLocation: Change message. (#13471)

* `getLegacyDatabaseLocation`: Change message.

* Update validator/node/node.go

Co-authored-by: Nishant Das <nishdas93@gmail.com>

---------

Co-authored-by: Nishant Das <nishdas93@gmail.com>
This commit is contained in:
Manu NALEPA 2024-01-16 12:29:36 +01:00 committed by GitHub
parent 6a65e07684
commit 46387a903a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,8 +232,15 @@ func (c *ValidatorClient) getLegacyDatabaseLocation(
legacyDataFile := filepath.Join(legacyDataDir, kv.ProtectionDbFileName)
if file.Exists(legacyDataFile) {
log.Warningf("Database not found in `--datadir` (%s) but found in `--wallet-dir` (%s).", dataFile, legacyDataFile)
log.Warningf("Please move the database from (%s) to (%s).", legacyDataFile, dataFile)
log.Infof(`Database not found in the --datadir directory (%s)
but found in the --wallet-dir directory (%s),
which was the legacy default.
The next time you run the validator client without a database,
it will be created into the --datadir directory (%s).
To silence this message, you can move the database from (%s)
to (%s).`,
dataDir, legacyDataDir, dataDir, legacyDataFile, dataFile)
dataDir = legacyDataDir
dataFile = legacyDataFile
}