diff options
author | Vijay <vv770d@att.com> | 2017-09-27 16:57:17 +0000 |
---|---|---|
committer | Vijay <vv770d@att.com> | 2017-09-27 16:57:30 +0000 |
commit | 32abd5689cd2e962b4fe6ad835ff0367ce06a3b2 (patch) | |
tree | bea764a7f1c6ce3edfcf7a9d87678a1420034050 /src/main/java/org/onap/dcae/commonFunction/CommonStartup.java | |
parent | f46b942de6b6ae6e9ede19a31c43c3e081fdc4e5 (diff) |
readme updates and logger change
Issue-Id:DCAEGEN2-82
Change-Id: I3c04a814576c6a758ff4489f13951374491e4c66
Signed-off-by: Vijay <vv770d@att.com>
Diffstat (limited to 'src/main/java/org/onap/dcae/commonFunction/CommonStartup.java')
-rw-r--r-- | src/main/java/org/onap/dcae/commonFunction/CommonStartup.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java b/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java index cd23de87..b974ed53 100644 --- a/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java +++ b/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java @@ -213,7 +213,7 @@ public class CommonStartup extends NsaBaseEndpoint implements Runnable { fTomcatServer.start(); } catch (LifecycleException | IOException e) { - LOG.error("lifecycle or IO: ", e); + log.error("lifecycle or IO: ", e); } fTomcatServer.await(); } @@ -246,7 +246,7 @@ public class CommonStartup extends NsaBaseEndpoint implements Runnable { } } - LOG.debug("CommonStartup.handleEvents:EVENTS has been published successfully!"); + log.debug("CommonStartup.handleEvents:EVENTS has been published successfully!"); CommonStartup.metriclog.info("EVENT_PUBLISH_END"); // ecomplogger.debug(secloggerMessageEnum.SEC_COLLECT_AND_PULIBISH_SUCCESS); @@ -269,20 +269,20 @@ public class CommonStartup extends NsaBaseEndpoint implements Runnable { try { // System.out.println("Applying schema: @<@<"+jsonSchema+">@>@ to // data: #<#<"+jsonData+">#>#"); - LOG.trace("Schema validation for event:" + jsonData); + log.trace("Schema validation for event:" + jsonData); JsonNode schemaNode = JsonLoader.fromString(jsonSchema); JsonNode data = JsonLoader.fromString(jsonData); JsonSchemaFactory factory = JsonSchemaFactory.byDefault(); JsonSchema schema = factory.getJsonSchema(schemaNode); report = schema.validate(data); } catch (JsonParseException e) { - LOG.error("schemavalidate:JsonParseException for event:" + jsonData); + log.error("schemavalidate:JsonParseException for event:" + jsonData); return e.getMessage().toString(); } catch (ProcessingException e) { - LOG.error("schemavalidate:Processing exception for event:" + jsonData); + log.error("schemavalidate:Processing exception for event:" + jsonData); return e.getMessage().toString(); } catch (IOException e) { - LOG.error( + log.error( "schemavalidate:IO exception; something went wrong trying to read json data for event:" + jsonData); return e.getMessage().toString(); } @@ -290,21 +290,21 @@ public class CommonStartup extends NsaBaseEndpoint implements Runnable { Iterator<ProcessingMessage> iter = report.iterator(); while (iter.hasNext()) { ProcessingMessage pm = iter.next(); - LOG.trace("Processing Message: " + pm.getMessage()); + log.trace("Processing Message: " + pm.getMessage()); } result = String.valueOf(report.isSuccess()); } try { - LOG.debug("Validation Result:" + result + " Validation report:" + report); + log.debug("Validation Result:" + result + " Validation report:" + report); } catch (NullPointerException e) { - LOG.error("schemavalidate:NullpointerException on report"); + log.error("schemavalidate:NullpointerException on report"); } return result; } public static LinkedBlockingQueue<JSONObject> fProcessingInputQueue; private static ApiServer fTomcatServer = null; - private static final Logger LOG = LoggerFactory.getLogger(CommonStartup.class); + private static final Logger log = LoggerFactory.getLogger(CommonStartup.class); } |