diff options
Diffstat (limited to 'zte')
-rw-r--r-- | zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java index 2b53a53..30cc766 100644 --- a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java +++ b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java @@ -28,9 +28,11 @@ import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.UUID; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; public class SfcDriverUtil { - + public static Log log = LogFactory.getLog(SfcDriverUtil.class); public static String generateUuid() { return UUID.randomUUID().toString(); @@ -95,9 +97,10 @@ public class SfcDriverUtil { { try { InetAddress addr = InetAddress.getLocalHost(); - return addr.getHostAddress().toString(); + return addr.getHostAddress(); } catch (UnknownHostException e) { - e.printStackTrace(); + //e.printStackTrace(); + log.error("getLocalIp StackTrace:", e); } return ""; } |