aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/database
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2020-03-13 21:37:47 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-13 21:37:47 +0000
commitc38ecec3e51ef7a5cbb820875a441f8551cd133b (patch)
tree7986f3e680d00f7a9cc0a1da33be2d3d3f4382b4 /controlloop/common/database
parent50c693bd21e104bea8d2e53f7130f31ae5869f75 (diff)
parent7f6929e5ea6da4015090b3adac73b35f9b3afb18 (diff)
Merge "Fix sonar issues in drools-applications"
Diffstat (limited to 'controlloop/common/database')
-rw-r--r--controlloop/common/database/src/main/java/org/onap/policy/database/std/StdOnapPip.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/controlloop/common/database/src/main/java/org/onap/policy/database/std/StdOnapPip.java b/controlloop/common/database/src/main/java/org/onap/policy/database/std/StdOnapPip.java
index 1416b3ef9..ab5fc4ec7 100644
--- a/controlloop/common/database/src/main/java/org/onap/policy/database/std/StdOnapPip.java
+++ b/controlloop/common/database/src/main/java/org/onap/policy/database/std/StdOnapPip.java
@@ -1,6 +1,8 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * ONAP
+ * ================================================================================
+ * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -105,7 +107,7 @@ public abstract class StdOnapPip extends StdConfigurableEngine {
properties.getProperty(issuerName + ".persistenceunit"),
emProperties).createEntityManager();
} catch (Exception e) {
- logger.error("Persistence failed {} operations history db {}", e.getLocalizedMessage(), e);
+ logger.error("Persistence failed operations history db", e);
}
}
@@ -200,7 +202,7 @@ public abstract class StdOnapPip extends StdConfigurableEngine {
pipResponse = null;
}
} catch (PIPException ex) {
- logger.error("PIPException getting subject-id attribute: " + ex.getMessage(), ex);
+ logger.error("PIPException getting subject-id attribute", ex);
}
return pipResponse;
}
@@ -229,7 +231,7 @@ public abstract class StdOnapPip extends StdConfigurableEngine {
stdPipResponse.addAttribute(new StdMutableAttribute(category, attributeId, attributeValue,
pipRequest.getIssuer(), false));
} catch (Exception e) {
- logger.error("Failed to convert {} to integer {}", value, e);
+ logger.error("Failed to convert {} to integer", value, e);
}
}