diff options
author | Arindam Mondal <arind.mondal@samsung.com> | 2019-06-12 13:11:56 +0900 |
---|---|---|
committer | arind.mondal <arind.mondal@samsung.com> | 2019-06-12 13:12:56 +0900 |
commit | e49ff54ef8cd2162cdc01c9a9ed69a8e6d6a51e1 (patch) | |
tree | 088bc7778cec5b79f8ff4b1869d47a70fcba96d0 | |
parent | c0e7e3ad22f2c8ac500e24e7eb4c8520cc71d016 (diff) |
Use logger to log exception
Issue-ID: MUSIC-410
Change-Id: Ief175a400c2c336eeb03807d71c4ef7a05a1b748
Signed-off-by: arind.mondal <arind.mondal@samsung.com>
-rw-r--r-- | src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java b/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java index faef9b8f..2230f267 100644 --- a/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java +++ b/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java @@ -29,12 +29,15 @@ import java.io.ObjectOutput; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.Map; - +import org.onap.music.authentication.AuthUtil; +import org.onap.music.eelf.logging.EELFLoggerDelegate; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class JsonSelect implements Serializable { private Map<String, String> consistencyInfo; + private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(JsonSelect.class); + public Map<String, String> getConsistencyInfo() { @@ -52,8 +55,7 @@ public class JsonSelect implements Serializable { out = new ObjectOutputStream(bos); out.writeObject(this); } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + logger.error("IOException occured {}",e.getMessage()); } return bos.toByteArray(); } |