Change to log level of the ES DAO shutdown logs 47/4247/1
authorgfraboni <gino.fraboni@amdocs.com>
Tue, 16 May 2017 18:08:24 +0000 (14:08 -0400)
committergfraboni <gino.fraboni@amdocs.com>
Tue, 16 May 2017 18:09:09 +0000 (14:09 -0400)
Change-Id: I1a3c0fabd0ca4f745812306d35c3648dfe8507d5
Signed-off-by: gfraboni <gino.fraboni@amdocs.com>
src/main/java/org/openecomp/sa/searchdbabstraction/elasticsearch/dao/ElasticSearchHttpController.java

index 9ab028e..0e9ff8b 100644 (file)
@@ -272,13 +272,13 @@ public class ElasticSearchHttpController implements DocumentStoreInterface {
     try {
       inputstream = connection.getInputStream();
     } catch (IOException e) {
-      logger.error(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection", e.getLocalizedMessage());
+      logger.debug(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection", e.getLocalizedMessage());
     } finally {
       if (inputstream != null) {
         try {
           inputstream.close();
         } catch (IOException e) {
-          logger.error(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection",
+          logger.debug(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection",
               e.getLocalizedMessage());
         }
       }
@@ -287,13 +287,13 @@ public class ElasticSearchHttpController implements DocumentStoreInterface {
     try {
       outputstream = connection.getOutputStream();
     } catch (IOException e) {
-      logger.error(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection", e.getLocalizedMessage());
+      logger.debug(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection", e.getLocalizedMessage());
     } finally {
       if (outputstream != null) {
         try {
           outputstream.close();
         } catch (IOException e) {
-          logger.error(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection",
+          logger.debug(SearchDbMsgs.EXCEPTION_DURING_METHOD_CALL, "shutdownConnection",
               e.getLocalizedMessage());
         }
       }
@@ -1593,4 +1593,4 @@ public class ElasticSearchHttpController implements DocumentStoreInterface {
 
   }
 
-}
\ No newline at end of file
+}