Browse Source

update 安心云最新设备数据 入库 排查 标记设备 logTagDeviceId

dev
lucas 1 month ago
parent
commit
285d2b169a
  1. 5
      consumers/consumerAXYraw.go

5
consumers/consumerAXYraw.go

@ -8,6 +8,7 @@ import (
"goInOut/dbOperate/_kafka" "goInOut/dbOperate/_kafka"
"goInOut/models" "goInOut/models"
"log" "log"
"os"
"sync" "sync"
"time" "time"
) )
@ -118,9 +119,11 @@ func (the *consumerAXYraw) toSink() {
} }
} }
const logTagDeviceId = "91da4d1f-fbc7-4dad-bedd-f8ff05c0e0e0" var logTagDeviceId = "91da4d1f-fbc7-4dad-bedd-f8ff05c0e0e0"
func (the *consumerAXYraw) Work() { func (the *consumerAXYraw) Work() {
logTagDeviceId = os.Getenv("logTagDeviceId")
log.Printf("监控 指定设备 logTagDeviceId=[%s]", logTagDeviceId)
go the.sinkTask() go the.sinkTask()
go func() { go func() {
for { for {

Loading…
Cancel
Save