From a956b9957c5152fefbdb6c4a0ccff8ebb9f6ca63 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 2 May 2018 15:30:18 +0530 Subject: Standardize log namming to comply with rules Issue-ID: CLI-106 Change-Id: I0daeeec33ef09ea7589a7122322a4c88cf2f56fd Signed-off-by: Kanagaraj Manickam k00365106 --- .../java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java | 10 +++++----- .../src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/src/main/java') diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java index b10629f4..26d49650 100644 --- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java +++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java @@ -252,7 +252,7 @@ public class OnapCommandDiscoveryUtils { try { resourceMap = loadYaml(resource); } catch (OnapCommandException e) { - OnapCommandUtils.LOG.error("Ignores invalid schema " + resource.getURI().toString(), e); + OnapCommandUtils.log.error("Ignores invalid schema " + resource.getURI().toString(), e); continue; } @@ -263,14 +263,14 @@ public class OnapCommandDiscoveryUtils { Object obj = resourceMap.get(OPEN_CLI_SCHEMA_VERSION); if (obj == null) { - OnapCommandUtils.LOG.info("Invalid Schema yaml " + schema.getSchemaURI()); + OnapCommandUtils.log.info("Invalid Schema yaml " + schema.getSchemaURI()); continue; } schema.setVersion(obj.toString()); if (!schema.getVersion().equalsIgnoreCase(OnapCommandConstants.OPEN_CLI_SCHEMA_VERSION_VALUE_1_0)) { - OnapCommandUtils.LOG.info("Unsupported Schema version found " + schema.getSchemaURI()); + OnapCommandUtils.log.info("Unsupported Schema version found " + schema.getSchemaURI()); continue; } @@ -331,12 +331,12 @@ public class OnapCommandDiscoveryUtils { Object sampleVersion = infoMap.get(OPEN_CLI_SAMPLE_VERSION); if (sampleVersion == null) { - OnapCommandUtils.LOG.info("Invalid Sample yaml " + sampleResourse.getURI().toString()); + OnapCommandUtils.log.info("Invalid Sample yaml " + sampleResourse.getURI().toString()); return; } if (!sampleVersion.toString().equalsIgnoreCase(OnapCommandConstants.OPEN_CLI_SAMPLE_VERSION_VALUE_1_0)) { - OnapCommandUtils.LOG.info("Unsupported Sample version found " + sampleResourse.getURI().toString()); + OnapCommandUtils.log.info("Unsupported Sample version found " + sampleResourse.getURI().toString()); return; } diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java index 2e91b73a..879e6289 100644 --- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java +++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java @@ -51,7 +51,7 @@ import com.jayway.jsonpath.JsonPath; */ public class OnapCommandUtils { - static Logger LOG = LoggerFactory.getLogger(OnapCommandUtils.class); + static Logger log = LoggerFactory.getLogger(OnapCommandUtils.class); /** * Private constructor. */ -- cgit 1.2.3-korg