From 7fcc895e05176b786cd6dcfaf8aba8190c53e1e7 Mon Sep 17 00:00:00 2001 From: Michal Korman Date: Thu, 24 May 2018 12:47:40 +0200 Subject: Replace printStackTrace with usage of logger Change-Id: I648e5a25337beca1f8c483ba6e5359d245e237d3 Issue-ID: SO-642 Signed-off-by: mkorman --- .../mso/adapters/catalogdb/catalogrest/QueryResourceRecipe.java | 3 +-- .../src/main/java/org/openecomp/mso/adapters/vfc/util/RestfulUtil.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'adapters') diff --git a/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryResourceRecipe.java b/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryResourceRecipe.java index 7d6aed4785..4d8b65a0c8 100644 --- a/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryResourceRecipe.java +++ b/adapters/mso-catalog-db-adapter/src/main/java/org/openecomp/mso/adapters/catalogdb/catalogrest/QueryResourceRecipe.java @@ -67,8 +67,7 @@ public class QueryResourceRecipe extends CatalogQuery{ try { jsonStr = mapper.writeValueAsString(valueMap); } catch(JsonProcessingException e) { - - e.printStackTrace(); + LOGGER.error("JsonProcessingException", e); } return jsonStr; } diff --git a/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/util/RestfulUtil.java b/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/util/RestfulUtil.java index 5168de85cc..4d2bf59fee 100644 --- a/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/util/RestfulUtil.java +++ b/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/util/RestfulUtil.java @@ -84,7 +84,6 @@ public class RestfulUtil { } } catch(MsoPropertiesException e) { LOGGER.error("Get msb properties failed",e); - e.printStackTrace(); } return "http://" + msbIp + ":" + msbPort; } -- cgit 1.2.3-korg