diff options
-rw-r--r-- | zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java | 4 | ||||
-rw-r--r-- | zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java index ccdf79b..aa52050 100644 --- a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java +++ b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java @@ -63,8 +63,8 @@ public class MsbServiceRegister implements Runnable { LOGGER.info("start sleep ...."); try { Thread.sleep(second); - } catch (InterruptedException error) { - LOGGER.error("thread sleep error.errorMsg:" + error.getMessage()); + } catch (Exception e) { + LOGGER.error("thread sleep error.errorMsg:", e); } LOGGER.info("sleep end ."); } 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 30cc766..18c56a5 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 @@ -32,7 +32,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class SfcDriverUtil { - public static Log log = LogFactory.getLog(SfcDriverUtil.class); + private static final Log log = LogFactory.getLog(SfcDriverUtil.class); public static String generateUuid() { return UUID.randomUUID().toString(); |