chg : logging strings

This commit is contained in:
Shivam Sharma 2022-12-20 11:39:11 +05:30
parent 513127cd8f
commit 7b52c93c1b

View file

@ -940,7 +940,7 @@ func ambiguousAddrRecovery(ks *keystore.KeyStore, err *keystore.AmbiguousAddrErr
log.Warn("Multiple key files exist for", "address", err.Addr) log.Warn("Multiple key files exist for", "address", err.Addr)
for _, a := range err.Matches { for _, a := range err.Matches {
log.Info("Multiple keys", "file", a.URL) log.Info("Multiple keys", "file", a.URL.String())
} }
log.Info("Testing your password against all of them...") log.Info("Testing your password against all of them...")
@ -959,12 +959,12 @@ func ambiguousAddrRecovery(ks *keystore.KeyStore, err *keystore.AmbiguousAddrErr
utils.Fatalf("None of the listed files could be unlocked.") utils.Fatalf("None of the listed files could be unlocked.")
} }
log.Info("Your password unlocked", "key", match.URL) log.Info("Your password unlocked", "key", match.URL.String())
log.Warn("In order to avoid this warning, you need to remove the following duplicate key files:") log.Warn("In order to avoid this warning, you need to remove the following duplicate key files:")
for _, a := range err.Matches { for _, a := range err.Matches {
if a != *match { if a != *match {
fmt.Println(" ", a.URL) log.Warn("Duplicate", "key", a.URL.String())
} }
} }