ProtocolSupport.java: fixed sonar issue 19/64219/1
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 3 Sep 2018 10:24:13 +0000 (15:54 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Mon, 3 Sep 2018 10:24:25 +0000 (15:54 +0530)
Fixed sonar code-smella/issues accross this file

Issue-ID: MUSIC-124
Change-Id: Iebfaae30d941761ffbe59920cf6301cf22daae44
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/main/java/org/onap/music/lockingservice/ProtocolSupport.java

index 4082b3b..19f49be 100644 (file)
@@ -174,8 +174,10 @@ class ProtocolSupport {
                 }
             });
         } catch (KeeperException e) {
+               logger.error("Error", e);
                logger.error(EELFLoggerDelegate.errorLogger, e.getMessage(),AppMessages.KEEPERERROR, ErrorSeverity.ERROR, ErrorTypes.LOCKINGERROR);
         } catch (InterruptedException e) {
+               logger.error("Error", e);
                logger.error(EELFLoggerDelegate.errorLogger, e.getMessage(),AppMessages.EXECUTIONINTERRUPTED, ErrorSeverity.ERROR, ErrorTypes.LOCKINGERROR);
         }
     }