Sonar Critical 65/61065/1
authorShubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
Fri, 17 Aug 2018 09:33:42 +0000 (15:03 +0530)
committerShubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
Fri, 17 Aug 2018 09:33:42 +0000 (15:03 +0530)
Either log or rethrow this exception.

Change-Id: I66dbc884fc72aa9b8c3faeaccaffc99e373858ec
Issue-ID: PORTAL-361
Signed-off-by: Shubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/music/util/MusicUtil.java

index 308528d..9667bfe 100644 (file)
@@ -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());
        }