disable send data to es
This commit is contained in:
parent
f8e79ef9fa
commit
c605b2d9e9
9
main.go
9
main.go
@ -12,7 +12,6 @@ import (
|
||||
|
||||
"git.trj.tw/golang/mtfosbot/module/apis/twitch"
|
||||
"git.trj.tw/golang/mtfosbot/module/cmd"
|
||||
"git.trj.tw/golang/mtfosbot/module/es"
|
||||
"git.trj.tw/golang/mtfosbot/module/options"
|
||||
"git.trj.tw/golang/mtfosbot/module/utils"
|
||||
|
||||
@ -79,10 +78,10 @@ func main() {
|
||||
log.Fatal(errors.New("log image root not exists"))
|
||||
}
|
||||
|
||||
err = es.NewClient()
|
||||
if err != nil {
|
||||
log.Println("es create client error :: ", err)
|
||||
}
|
||||
// err = es.NewClient()
|
||||
// if err != nil {
|
||||
// log.Println("es create client error :: ", err)
|
||||
// }
|
||||
|
||||
server.Run(strings.Join([]string{":", strconv.Itoa(config.GetConf().Port)}, ""))
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ func saveTextMsgToLog(txt string, s *lineobj.SourceObject) {
|
||||
return
|
||||
}
|
||||
|
||||
go saveLineMessageLogToES(s.GroupID, s.UserID, txt, "text")
|
||||
// go saveLineMessageLogToES(s.GroupID, s.UserID, txt, "text")
|
||||
model.AddLineMessageLog(s.GroupID, s.UserID, txt, "text")
|
||||
}
|
||||
|
||||
@ -163,7 +163,7 @@ func saveImageMsgToLog(id string, s *lineobj.SourceObject) {
|
||||
}
|
||||
}
|
||||
|
||||
go saveLineMessageLogToES(s.GroupID, s.UserID, fname, "image")
|
||||
// go saveLineMessageLogToES(s.GroupID, s.UserID, fname, "image")
|
||||
model.AddLineMessageLog(s.GroupID, s.UserID, fname, "image")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user