change error to warn for moving from unencrypted to encrypted

This commit is contained in:
Sam Machin
2022-03-21 09:29:41 +00:00
parent c7f48a83c0
commit d9bd736159
3 changed files with 6 additions and 6 deletions

View File

@@ -241,9 +241,8 @@ var api = module.exports = {
} else {
if (encryptionEnabled) {
// Our config expects the credentials to be encrypted but the encrypted object is not found
var error = new Error("Encrypted credentials not found");
error.code = "credentials_load_failed";
throw error
log.warn(log._("nodes.credentials.encryptednotfound",{message:err.toString()}))
credentialCache = credentials;
} else {
// credentialSecret is set to False
log.warn(log._("nodes.credentials.unencrypted",{message:err.toString()}))