aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-11-26 23:20:14 +0530
committerBrendan Tschaen <ctschaen@att.com>2018-11-27 16:27:15 +0000
commit5ee7bc2e7fd5e31f0ab24fe459fc22fccdb6e1b3 (patch)
treec5b5f20ac59916af98f7659e968aae69ec01e225 /src/main
parent18b941b5bae216c8edf17fce355569911266dfdc (diff)
Logged error message in RestMusicAdminAPI
Fixed Sonar issue in RestMusicAdminAPI Issue-ID: MUSIC-202 Change-Id: I49cf54168b3cc24e77cbb14078e147c7a4972834 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'src/main')
-rwxr-xr-xsrc/main/java/org/onap/music/rest/RestMusicAdminAPI.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java b/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
index 33128f3c..7fb7b1d5 100755
--- a/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
+++ b/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
@@ -4,6 +4,8 @@
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -939,7 +941,7 @@ public class RestMusicAdminAPI {
pQuery.addValue(MusicUtil.convertToActualDataType(DataType.text(), notifyOn));
MusicCore.nonKeyRelatedPut(pQuery, MusicUtil.EVENTUAL);
} catch(Exception e) {
- e.printStackTrace();
+ logger.error(EELFLoggerDelegate.errorLogger,e.getMessage());
return response.status(Status.BAD_REQUEST).entity(new JsonResponse(ResultType.FAILURE).setMessage("Callback api registration failed").toMap()).build();
}
return response.status(Status.OK).entity(new JsonResponse(ResultType.SUCCESS).setMessage("Callback api successfully deleted").toMap()).build();