Fix sonar issue AppExitHandler
authoredyta <edyta.krukowska@nokia.com>
Tue, 31 Mar 2020 13:32:23 +0000 (15:32 +0200)
committeredyta <edyta.krukowska@nokia.com>
Tue, 31 Mar 2020 13:32:23 +0000 (15:32 +0200)
Issue-ID: AAF-1118
Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com>
Change-Id: I9ed1b206dd0f8130aee11d453f1cdd6eaa534a58

certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java

index caeca37..0bb983e 100644 (file)
@@ -26,8 +26,8 @@ public class AppExitHandler {
     private static final Logger LOGGER = LoggerFactory.getLogger(AppExitHandler.class);
 
     public void exit(ExitStatus exitStatus) {
-        LOGGER.info(String.format("Application exits with following exit code: %s and message: %s",
-                exitStatus.getExitCodeValue(), exitStatus.getMessage()));
+        LOGGER.info("Application exits with following exit code: {} and message: {}",
+                exitStatus.getExitCodeValue(), exitStatus.getMessage());
         System.exit(exitStatus.getExitCodeValue());
     }
 }