Replace printStackTrace with usage of logger
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / openecomp / mso / apihandlerinfra / tenantisolation / process / ActivateVnfOperationalEnvironment.java
index 24111c4..1bfe979 100644 (file)
@@ -217,17 +217,13 @@ public class ActivateVnfOperationalEnvironment extends OperationalEnvironmentPro
                        AAIResultWrapper aaiResult = aaiHelper.getAaiOperationalEnvironment(operationalEnvironmentId);\r
                        operationalEnv = aaiResult.asBean(AAIOperationalEnvironment.class).get();\r
                } catch (JsonParseException e) {\r
-                       msoLogger.debug(" **** JsonParseException: " + e.getMessage());\r
-                       e.printStackTrace();\r
+                       msoLogger.error(" **** JsonParseException: ", e);\r
                } catch (JsonMappingException e) {\r
-                       msoLogger.debug(" **** JsonMappingException: " + e.getMessage());\r
-                       e.printStackTrace();\r
+                       msoLogger.error(" **** JsonMappingException: ", e);\r
                } catch (IOException e) {\r
-                       msoLogger.debug(" **** IOException: " + e.getMessage());\r
-                       e.printStackTrace();\r
+                       msoLogger.error(" **** IOException: ", e);\r
                } catch (Exception e) {\r
-                       msoLogger.debug(" **** Exception: " + e.getMessage());\r
-                       e.printStackTrace();\r
+                       msoLogger.error(" **** Exception: ", e);\r
                }\r
                \r
                return operationalEnv;\r