From 04af6de363b8d420eb244e289817277ea2bcc5d4 Mon Sep 17 00:00:00 2001 From: panll <m18010473990@163.com> Date: 星期六, 17 十月 2020 16:41:40 +0800 Subject: [PATCH] 修改默认参数与ZLM统一 --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java index 3cb6506..775cb0f 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java @@ -9,6 +9,7 @@ import org.springframework.stereotype.Component; import java.io.IOException; +import java.net.ConnectException; import java.util.HashMap; import java.util.HashSet; import java.util.Map; @@ -55,7 +56,10 @@ responseJSON = JSON.parseObject(responseStr); } } - } catch (IOException e) { + } catch (ConnectException e) { + logger.error(String.format("杩炴帴ZLM澶辫触: %s, %s", e.getCause().getMessage(), e.getMessage())); + logger.info("璇锋鏌edia閰嶇疆骞剁‘璁LM宸插惎鍔�..."); + }catch (IOException e) { e.printStackTrace(); } -- Gitblit v1.8.0