summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
ad02e6d)
Issue-ID: AAI-387
Change-Id: I304b9d4a50cb896ab3c638d986db8450c10e5427
Signed-off-by: O'Connor, Lina (lo8949) <lo8949@att.com>
import org.json.JSONObject;
import org.openecomp.aai.logging.ErrorLogHelper;
import org.openecomp.aai.util.AAIConstants;
import org.json.JSONObject;
import org.openecomp.aai.logging.ErrorLogHelper;
import org.openecomp.aai.util.AAIConstants;
+import org.openecomp.aai.logging.LoggingContext;
+import org.openecomp.aai.logging.LoggingContext.LoggingField;
+import org.openecomp.aai.logging.LoggingContext.StatusCode;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.JMSException;
import javax.jms.Message;
LOGGER.info(eventName + "|" + aaiEvent);
if ("AAI-EVENT".equals(eventName)) {
this.sentWithHttp(this.httpClient, this.aaiEventUrl, aaiEvent);
LOGGER.info(eventName + "|" + aaiEvent);
if ("AAI-EVENT".equals(eventName)) {
this.sentWithHttp(this.httpClient, this.aaiEventUrl, aaiEvent);
+ } else {
+ LoggingContext.statusCode(StatusCode.ERROR);
+ LOGGER.error(eventName + "|Event Topic invalid.");
}
} catch (java.net.SocketException e) {
if (!e.getMessage().contains("Connection reset")) {
}
} catch (java.net.SocketException e) {
if (!e.getMessage().contains("Connection reset")) {
.append(e.getMessage())
.toString();
.append(e.getMessage())
.toString();
- LoggingContext.responseCode(errorObject.getErrorCodeString());
+ LoggingContext.responseCode(Integer.toString(errorObject.getHTTPResponseCode().getStatusCode()));
LoggingContext.responseDescription(errorMessage);
LoggingContext.statusCode(StatusCode.ERROR);
LoggingContext.responseDescription(errorMessage);
LoggingContext.statusCode(StatusCode.ERROR);