chore: Get better logging arround keychain list initialisation.

This commit is contained in:
Romain LE JEUNE
2023-12-14 16:41:00 +01:00
parent 5c69af4418
commit 8f5bd37aee
5 changed files with 15 additions and 9 deletions

View File

@ -30,8 +30,9 @@ func listHelpers() (Helpers, string) {
// Windows always provides a keychain.
if isUsable(newWinCredHelper("")) {
helpers[WindowsCredentials] = newWinCredHelper
logrus.WithField("keychain", "WindowsCredentials").Info("Keychain is usable.")
} else {
logrus.WithField("keychain", "WindowsCredentials").Warn("Keychain is not available.")
logrus.WithField("keychain", "WindowsCredentials").Debug("Keychain is not available.")
}
// Use WindowsCredentials by default.
return helpers, WindowsCredentials