Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Decryption messages should not be errors"
[policy/engine.git]
/
PolicyEngineUtils
/
src
/
main
/
java
/
org
/
onap
/
policy
/
utils
/
CryptoUtils.java
diff --git
a/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
b/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
index
5496f0d
..
15a93bd
100644
(file)
--- a/
PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
+++ b/
PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
@@
-139,16
+139,16
@@
public class CryptoUtils {
try {
if (encryptedTxt == null || encryptedTxt.isEmpty()) {
try {
if (encryptedTxt == null || encryptedTxt.isEmpty()) {
- LOGGER.
error("decryptTxtNoEx: Input param encryptedTxt is not valid
");
+ LOGGER.
info("decryptTxtNoEx: Input param encryptedTxt is empty
");
return new byte[0];
}
return decryptTxt(encryptedTxt);
} catch (Exception e) {
try {
return new byte[0];
}
return decryptTxt(encryptedTxt);
} catch (Exception e) {
try {
- LOGGER.
error("decryptTxtNoEx: Exception while decryption
: " + e);
+ LOGGER.
info("decryptTxtNoEx: Exception while decrypting
: " + e);
return (encryptedTxt != null) ? encryptedTxt.getBytes(StandardCharsets.UTF_8) : new byte[0];
} catch (Exception e1) {
return (encryptedTxt != null) ? encryptedTxt.getBytes(StandardCharsets.UTF_8) : new byte[0];
} catch (Exception e1) {
- LOGGER.
error
("decryptTxtNoEx: Exception on sending default : " + e1);
+ LOGGER.
warn
("decryptTxtNoEx: Exception on sending default : " + e1);
return new byte[0];
}
}
return new byte[0];
}
}