Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Using logger to throw exception
[aaf/authz.git]
/
auth
/
auth-batch
/
src
/
main
/
java
/
org
/
onap
/
aaf
/
auth
/
batch
/
Batch.java
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
b5ff59b
..
d2695a3
100644
(file)
--- 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) {
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);
}
return (0);
}
@@
-545,7
+544,7
@@
public abstract class Batch {
if(cluster!=null && !cluster.isClosed()) {
cluster.close();
}
if(cluster!=null && !cluster.isClosed()) {
cluster.close();
}
- e
.printStackTrace
(System.err);
+ e
nv.warn().log
(System.err);
}
}
}
}