summaryrefslogtreecommitdiffstats
path: root/ms/neng
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-11-27 17:37:57 +0530
committerezhil <ezhrajam@in.ibm.com>2018-11-27 17:38:11 +0530
commitd1ca9189526d86b47cf760677022a6284f1aa665 (patch)
treeb532094b735ac1ea70e360bc729e0cce7a2656d7 /ms/neng
parent5a80eff8240087798f05da8bc7340873d6954b8c (diff)
Fixed Sonar issue in Application.java
Renamed the log variable Issue-ID: CCSDK-756 Change-Id: Ibb71e2cc363619bdf2593f67fabada2e55ff8287 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'ms/neng')
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/Application.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/Application.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/Application.java
index 0edc38a3..1287a273 100644
--- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/Application.java
+++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/Application.java
@@ -42,7 +42,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@EnableAsync
public class Application extends SpringBootServletInitializer {
- private Logger logger = LoggerFactory.getLogger(Application.class);
+ private Logger log = LoggerFactory.getLogger(Application.class);
/**
* Configures the application.
@@ -65,14 +65,15 @@ public class Application extends SpringBootServletInitializer {
@Bean
public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
return args -> {
- logger.info("################################");
- logger.info("Inspecting the beans provided by Spring Boot:");
+ log.info("################################");
+ log.info("Inspecting the beans provided by Spring Boot:");
String[] beanNames = ctx.getBeanDefinitionNames();
Arrays.sort(beanNames);
for (String beanName : beanNames) {
System.out.println(beanName);
+ log.info(beanName);
}
- logger.info("################################");
+ log.info("################################");
};
}