| | |
| | | "flag" |
| | | "fmt" |
| | | "github.com/spf13/viper" |
| | | log "github.com/jeanphorn/log4go" |
| | | //log "github.com/jeanphorn/log4go" |
| | | "ruleprocess/cache" |
| | | "ruleprocess/ruleserver" |
| | | "sync" |
| | |
| | | } else { |
| | | //runtime.GOMAXPROCS(runtime.NumCPU()) |
| | | //logger.Debug("使用的cpu个数:",runtime.NumCPU()) |
| | | //go func(msg []byte) { |
| | | go func(msg []byte) { |
| | | logger.Debug("当前时间戳:", time.Now().Unix()) |
| | | log.Warn(time.Now().Format("2006-01-02 15:04:05")) |
| | | //log.Warn(time.Now().Format("2006-01-02 15:04:05")) |
| | | arg := structure.SdkDatas{} |
| | | //paramFormat(msg, &arg) |
| | | start := time.Now() |
| | |
| | | logger.Debug("插入完Es所用时间:", esEnd) |
| | | //事件推送 |
| | | labelFilter.PushSomthing(resultMsg) |
| | | //}(msg) |
| | | }(msg) |
| | | } |
| | | } |
| | | } |