opt: 添加日志
This commit is contained in:
@@ -35,6 +35,7 @@ public class AutoQueryDeviceStatus {
|
||||
boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS);
|
||||
try {
|
||||
if (tryLock){
|
||||
log.info("正在更新温度....");
|
||||
for (URLEnum url : URLEnum.values()) {
|
||||
try {
|
||||
String product_area = url.getProduct_area();
|
||||
@@ -54,7 +55,7 @@ public class AutoQueryDeviceStatus {
|
||||
String countdown_house = row.getString("countdown_house");
|
||||
String countdown_min = row.getString("countdown_min");
|
||||
String countdown_sec = row.getString("countdown_sec");
|
||||
|
||||
log.info("设备:{} - 温度:{}", device_code, row.getString("now_temperature"));
|
||||
if (StrUtil.isEmpty(countdown_house)) {
|
||||
countdown_house = "0";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user