mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 06:28:03 +00:00
MINOR - Secrets Manager server logging (#21325)
This commit is contained in:
parent
3830e79f52
commit
1a9a9156b6
@ -356,10 +356,12 @@ public abstract class SecretsManager {
|
||||
}
|
||||
return toEncryptObject;
|
||||
} catch (Exception e) {
|
||||
throw new SecretsManagerException(
|
||||
String msg =
|
||||
String.format(
|
||||
"Error trying to encrypt object with secret ID [%s] due to [%s]",
|
||||
secretId, e.getMessage()));
|
||||
secretId, e.getMessage());
|
||||
LOG.error(msg);
|
||||
throw new SecretsManagerException(msg);
|
||||
}
|
||||
}
|
||||
|
||||
@ -390,6 +392,7 @@ public abstract class SecretsManager {
|
||||
});
|
||||
return toDecryptObject;
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error trying to decrypt object due to [{}]", e.getMessage());
|
||||
throw new SecretsManagerException(
|
||||
String.format(
|
||||
"Error trying to decrypt object [%s] due to [%s]",
|
||||
|
Loading…
x
Reference in New Issue
Block a user