Commit 9bfe4fa6 by 陈健智

数据用量预警推送启动环境条件调整

parent 85c38fa5
...@@ -46,7 +46,7 @@ public class RobotPushUtils { ...@@ -46,7 +46,7 @@ public class RobotPushUtils {
// if (com.zhiwei.pushlog.tools.Tools.isEmpty(LogConfig.getAddress()) && LogConfig.loadProperties()) { // if (com.zhiwei.pushlog.tools.Tools.isEmpty(LogConfig.getAddress()) && LogConfig.loadProperties()) {
// throw new IllegalArgumentException("push.robot.address is null"); // throw new IllegalArgumentException("push.robot.address is null");
// } // }
if (!LogConfig.getEnable()){ if (!LogConfig.getAppName().contains("prod")){
return null; return null;
} }
if (Objects.nonNull(throwable) && !timeFilter(throwable.getClass().getName())) { if (Objects.nonNull(throwable) && !timeFilter(throwable.getClass().getName())) {
...@@ -75,7 +75,7 @@ public class RobotPushUtils { ...@@ -75,7 +75,7 @@ public class RobotPushUtils {
// if (com.zhiwei.pushlog.tools.Tools.isEmpty(LogConfig.getAddress()) && LogConfig.loadProperties()) { // if (com.zhiwei.pushlog.tools.Tools.isEmpty(LogConfig.getAddress()) && LogConfig.loadProperties()) {
// throw new IllegalArgumentException("push.robot.address is null"); // throw new IllegalArgumentException("push.robot.address is null");
// } // }
if (!LogConfig.getEnable()){ if (!LogConfig.getAppName().contains("prod")){
return null; return null;
} }
if (Objects.isNull(message) || !timeFilter(message)) { if (Objects.isNull(message) || !timeFilter(message)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment