From b68ba6018be7b97bca32c76a76c92b5d896c8a5e Mon Sep 17 00:00:00 2001 From: Shubhada Ramkrishna Vaze Date: Fri, 17 Aug 2018 15:03:42 +0530 Subject: Sonar Critical Either log or rethrow this exception. Change-Id: I66dbc884fc72aa9b8c3faeaccaffc99e373858ec Issue-ID: PORTAL-361 Signed-off-by: Shubhada Ramkrishna Vaze --- .../src/main/java/org/onap/portalapp/music/util/MusicUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ecomp-portal-BE-common') diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/music/util/MusicUtil.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/music/util/MusicUtil.java index 308528d5..9667bfef 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/music/util/MusicUtil.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/music/util/MusicUtil.java @@ -115,7 +115,8 @@ public class MusicUtil { oos.flush(); } } catch (IOException e) { - logger.error(EELFLoggerDelegate.errorLogger, "Failed to serialize "); + String message="Failed to serialize "; + logger.error(EELFLoggerDelegate.errorLogger, message, e); } return ByteBuffer.wrap(bo.toByteArray()); } -- cgit 1.2.3-korg