diff options
author | 2020-02-18 16:13:54 +0100 | |
---|---|---|
committer | 2020-02-21 09:27:35 +0100 | |
commit | 7e02d16d8a65c611f45523c51cb26535b1164064 (patch) | |
tree | 849050de09557cb31167c8b242f26d09da109949 /certServiceClient/src/main/java/org/onap/aaf/certservice/client | |
parent | 18acead623826c43da43da6d0e55e81e1f2953a1 (diff) |
Add of logging for certservice-client
Issue-ID: AAF-996
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Change-Id: I8bed44937da32fff863df724adc023f546b5e12e
Diffstat (limited to 'certServiceClient/src/main/java/org/onap/aaf/certservice/client')
-rw-r--r-- | certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java index 4416d0ec..6e83a40e 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java +++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java @@ -19,12 +19,18 @@ package org.onap.aaf.certservice.client; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + public class CertServiceClient { + private static final Logger LOGGER = LoggerFactory.getLogger(CertServiceClient.class); + public void run(String[] args) { exit(0); } protected void exit(int statusCode){ + LOGGER.debug("Application exits with following exit code: " + statusCode); System.exit(statusCode); } } diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java index b0490e88..adbb02ad 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java +++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClientApp.java @@ -25,5 +25,4 @@ public class CertServiceClientApp { CertServiceClient certServiceClient = new CertServiceClient(); certServiceClient.run(args); } - }
\ No newline at end of file |