summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-11-06 12:54:38 +0000
committerGerrit Code Review <gerrit@onap.org>2019-11-06 12:54:38 +0000
commit650be0065a276ce59a42c97ea67406921468bff1 (patch)
tree6b55c8a465c4ffab23f03f25374a2bc8510c8378 /auth
parent74786816a34bd21eeb43b0ca1b2e204021d798d7 (diff)
parenta8aec7e925f53a1dfbb38530aa47d70313a22098 (diff)
Merge "Using logger to throw exception Issue-ID: AAF-1032 Change-Id: Ic7a6f89de457bca7c3bdc4ea5a3e58cfe214e06c Signed-off-by: Rachitha <racrama1@in.ibm.com>"
Diffstat (limited to 'auth')
-rw-r--r--auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java
index b5ff59b1..d2695a35 100644
--- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java
+++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java
@@ -264,8 +264,7 @@ public abstract class Batch {
try {
hostname = InetAddress.getLocalHost().getHostName();
} catch (UnknownHostException e) {
- e.printStackTrace();
- env.warn().log("Unable to get hostname");
+ env.warn().log("Unable to get hostname : "+e.getMessage());
return (0);
}
@@ -545,7 +544,7 @@ public abstract class Batch {
if(cluster!=null && !cluster.isClosed()) {
cluster.close();
}
- e.printStackTrace(System.err);
+ env.warn().log(System.err);
}
}