Fixed Sonar issue in Application.java 67/73667/1
authorezhil <ezhrajam@in.ibm.com>
Tue, 27 Nov 2018 12:07:57 +0000 (17:37 +0530)
committerezhil <ezhrajam@in.ibm.com>
Tue, 27 Nov 2018 12:08:11 +0000 (17:38 +0530)
Renamed the log variable
Issue-ID: CCSDK-756
Change-Id: Ibb71e2cc363619bdf2593f67fabada2e55ff8287
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/Application.java

index 0edc38a..1287a27 100644 (file)
@@ -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("################################");
         };
     }