X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fmusic%2Fdatastore%2Fjsonobjects%2FJsonSelect.java;h=2230f2673741779f5f11be35b8fc9ccc357d6ada;hb=e49ff54ef8cd2162cdc01c9a9ed69a8e6d6a51e1;hp=ef56c5def2658f4194f788de0947b5c6ad446a93;hpb=99c6296cf2faeea3d7b04d6cc696367729cef88a;p=music.git 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 ef56c5de..2230f267 100644 --- a/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java +++ b/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java @@ -3,6 +3,7 @@ * org.onap.music * =================================================================== * 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. @@ -19,6 +20,7 @@ * ============LICENSE_END============================================= * ==================================================================== */ + package org.onap.music.datastore.jsonobjects; import java.io.ByteArrayOutputStream; @@ -27,13 +29,16 @@ import java.io.ObjectOutput; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.Map; -import org.apache.log4j.Logger; +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 consistencyInfo; - static Logger logger = Logger.getLogger(JsonSelect.class.getName()); + private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(JsonSelect.class); + + public Map getConsistencyInfo() { return consistencyInfo; @@ -50,9 +55,7 @@ public class JsonSelect implements Serializable { out = new ObjectOutputStream(bos); out.writeObject(this); } catch (IOException e) { - // TODO Auto-generated catch block - logger.error("Error", e); - e.printStackTrace(); + logger.error("IOException occured {}",e.getMessage()); } return bos.toByteArray(); }