From 087bf92d707de1a838451719da505f69b6934087 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期五, 29 十一月 2019 18:03:27 +0800 Subject: [PATCH] 换log --- algorithm/static/static.go | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/algorithm/static/static.go b/algorithm/static/static.go index 4a0c4b4..b2a8f87 100644 --- a/algorithm/static/static.go +++ b/algorithm/static/static.go @@ -2,7 +2,7 @@ import ( "basic.com/pubsub/protomsg.git" - "basic.com/valib/logger.git" + logger "github.com/jeanphorn/log4go" "github.com/knetic/govaluate" "ruleprocess/ruleserver" "ruleprocess/structure" @@ -142,7 +142,7 @@ // logger.Info("鍏蜂綋鐩爣锛�",tar.Location) //} for _, tar := range structure.StaticMap[am.AreaId].Targets { - singleResult,arg := SingleStatic(tar,am,lable,90) + singleResult,arg := SingleStatic(tar,am,lable,95) if singleResult { flag = "true" tars = append(tars,arg) @@ -223,12 +223,14 @@ if tar.N == 0 && tar.AlarmFlag { logger.Debug("-------------------------绗﹀悎鎸佺画鏃堕棿瑙勫垯浣嗗苟涓嶆槸棣栨锛屼笉鎶ヨ") flagTime = "11" + o.TimeLable = flagTime o.CacheData = tar.CacheSdkData } if tar.N == 0 && !tar.AlarmFlag { // 杩欑粍瑙勫垯鐨勫畾鏃跺櫒瑕佸叏閮ㄧ瓑浜�0 鏆備笖璁や负涓�缁勮鍒欏彧鏈変竴涓畾鏃跺櫒 logger.Debug("鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��-------------棣栨绗﹀悎鎸佺画鏃堕棿瑙勫垯骞舵姤璀�") flagTime = "10" tar.AlarmFlag = true + o.TimeLable = flagTime o.CacheData = tar.CacheSdkData } if tar.N != 0 { -- Gitblit v1.8.0