Fix error string formatting

This commit is contained in:
Sandro Jäckel 2024-03-03 01:38:27 +01:00
parent 5cc498dc62
commit 886b7f66c3
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -149,9 +149,9 @@ func (vault *Vault) isSSHKey(cipher models.Cipher) bool {
cipherID := cipher.ID.String()
if cipher.OrganizationID != nil {
orgID := cipher.OrganizationID.String()
vaultLog.Error("Failed to decrypt field name with on cipher "+cipherID+" in organization "+orgID, err.Error())
vaultLog.Error("Failed to decrypt field name with on cipher %s in organization %s: %s", cipherID, orgID, err.Error())
} else {
vaultLog.Error("Failed to decrypt field name with on cipher "+cipherID, err.Error())
vaultLog.Error("Failed to decrypt field name with on cipher %s: %s", cipherID, err.Error())
}
continue
}