add log start time
This commit is contained in:
parent
14338a3f5a
commit
224de1c7b9
7
main.go
7
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user