add log start time

This commit is contained in:
eson 2020-12-09 11:07:51 +08:00
parent 14338a3f5a
commit 224de1c7b9

View File

@ -49,10 +49,11 @@ func main() {
cla := engine.Table("count_live_anchors")
start := getArgsStartTime()
log.Println("start from ", start)
// start, err := time.ParseInLocation("2006-01-02 15:04:03", "2020-11-30 16:29:17", time.Local)
if err != nil {
panic(err)
}
// if err != nil {
// panic(err)
// }
cur, err := mdb.C.CountLiveAnchors.Find(context.TODO(), bson.M{"create_at": bson.M{"$gte": start}})
if err != nil {
panic(err)