diff options
4 files changed, 11 insertions, 12 deletions
diff --git a/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java b/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java index cdb3b2c5a5..6db0a56da6 100644 --- a/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java +++ b/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java @@ -76,8 +76,7 @@ public class ValidationConfigManager { input = new FileInputStream(path); prop.load(input); } catch (IOException ex) { - ex.printStackTrace(); - log.info("FileInputStream failed - {}", ex); + log.info("FileInputStream failed", ex); } return prop; } diff --git a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/SSLProxyServlet.java b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/SSLProxyServlet.java index d4f6832dba..5f5bcd62c2 100644 --- a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/SSLProxyServlet.java +++ b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/SSLProxyServlet.java @@ -65,7 +65,7 @@ public abstract class SSLProxyServlet extends ProxyServlet { try { httpClient.start(); } catch (Exception x) { - log.error("Exception thrown while starting httpClient {}", x); + log.error("Exception thrown while starting httpClient", x); throw new ServletException(x); } 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; } |