summaryrefslogtreecommitdiffstats
path: root/common-app-api
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api')
-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;
}