Use a logger to log this exception-AafConnection 07/75207/1
authorDriptaroop Das <driptaroop.das@in.ibm.com>
Thu, 3 Jan 2019 08:28:25 +0000 (13:58 +0530)
committerDriptaroop Das <driptaroop.das@in.ibm.com>
Thu, 3 Jan 2019 08:28:47 +0000 (13:58 +0530)
Exception is already logged using logger. deleting the printstacktrace.

Issue-ID: DMAAP-924
Change-Id: I2eda3c840af3cd61d429373dccd046e19e076be4
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
src/main/java/org/onap/dmaap/dbcapi/aaf/AafConnection.java

index 1d7b273..e22290a 100644 (file)
@@ -3,6 +3,8 @@
   * org.onap.dmaap
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ *
+ * Modifications Copyright (C) 2019 IBM.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -79,7 +81,6 @@ public class AafConnection extends BaseLoggingClass {
                } catch (Exception e) {
                        logger.error("Error", e);
                errorLogger.error(DmaapbcLogMessageEnum.HTTP_CONNECTION_ERROR,  pURL, e.getMessage());
-            e.printStackTrace();
             return(false);
         }