summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org
diff options
context:
space:
mode:
authorChris André <chris.andre@yoppworks.com>2020-04-15 13:37:46 -0400
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-04-19 06:45:30 +0000
commitd510e7838cace2c343d9ce5430a75455c3a846c8 (patch)
tree4382bec417bd748ad03e395fbf6b01706b38799b /common-app-api/src/main/java/org
parentb191a68ff7702247962fd3a1f222496c300ff10b (diff)
Removed explicit references to exceptions in log messages
Issue-ID: SDC-2884 Change-Id: I6f3e9503922cc3a4f4049fced8d23cede7b0455a Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Diffstat (limited to 'common-app-api/src/main/java/org')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsv.java8
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/monitoring/MonitoringMetricsFetcher.java10
2 files changed, 9 insertions, 9 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsv.java b/common-app-api/src/main/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsv.java
index f59385e2f5..a4852d10f1 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsv.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsv.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -166,7 +166,7 @@ public class GenerateEcompErrorsCsv {
ecompErrorRow.setCleanErrorCode(cleanErrorCode);
ecompErrorRow.setDescription(ecompErrorEnum.getEcompErrorCode().getDescription());
ecompErrorRow.setErrorCode(errorCode);
- ecompErrorRow.setErrorName(ecompErrorEnum.name().toString());
+ ecompErrorRow.setErrorName(ecompErrorEnum.name());
ecompErrorRow.setErrorType(ecompErrorEnum.geteType());
ecompErrorRow.setResolution(ecompErrorEnum.getEcompErrorCode().getResolution());
@@ -195,7 +195,7 @@ public class GenerateEcompErrorsCsv {
result = true;
} catch (Exception e) {
- log.info("generate Ecomp Errors Csv File failed - {}" , e);
+ log.info("generate Ecomp Errors Csv File failed" , e);
}
return result;
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/monitoring/MonitoringMetricsFetcher.java b/common-app-api/src/main/java/org/openecomp/sdc/common/monitoring/MonitoringMetricsFetcher.java
index ea92156ce1..a7230c51e8 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/monitoring/MonitoringMetricsFetcher.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/monitoring/MonitoringMetricsFetcher.java
@@ -137,7 +137,7 @@ public class MonitoringMetricsFetcher {
cpuTime = (long) platformMBeanServer.getAttribute(
new ObjectName(ManagementFactory.OPERATING_SYSTEM_MXBEAN_NAME), PROCESS_CPU_TIME_ATTR);
} catch (Exception e) {
- monitoringLogger.error("Couldn't measure JVM CPU time, error: {}", e);
+ monitoringLogger.error("Couldn't measure JVM CPU time", e);
}
return cpuTime;
}
@@ -152,7 +152,7 @@ public class MonitoringMetricsFetcher {
try {
cpuTime = sigarSession.getCpu().getTotal();
} catch (Exception e) {
- monitoringLogger.error("Couldn't measure host CPU time, error: {}", e);
+ monitoringLogger.error("Couldn't measure host CPU time", e);
}
return cpuTime;
}
@@ -167,7 +167,7 @@ public class MonitoringMetricsFetcher {
try {
memory = sigarSession.getMem().getUsedPercent();
} catch (Exception e) {
- monitoringLogger.error("Couldn't measure host used memory, error: {}", e);
+ monitoringLogger.error("Couldn't measure host used memory", e);
}
return memory;
}
@@ -188,7 +188,7 @@ public class MonitoringMetricsFetcher {
res.put(dirName, usePercent);
}
} catch (Exception e) {
- monitoringLogger.error("Couldn't measure host used disk, error: {}", e);
+ monitoringLogger.error("Couldn't measure host used disk", e);
}
return res;
}
@@ -203,7 +203,7 @@ public class MonitoringMetricsFetcher {
try {
fqdn = sigarSession.getFQDN();
} catch (Exception e) {
- monitoringLogger.error("Couldn't get FQDN, error: {}", e);
+ monitoringLogger.error("Couldn't get FQDN", e);
}
return fqdn;
}