mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
sync: add more debug logs
This commit is contained in:
parent
4f42f90b49
commit
cace7c8f97
|
@ -115,16 +115,19 @@ func (sel SyncTask) execute(ctx context.Context, db *sqlx.DB, startTime time.Tim
|
|||
obj := v.Interface()
|
||||
id := sel.ID(obj)
|
||||
if _, exists := ids[id]; exists {
|
||||
logrus.Debugf("object %s already exists, skipping", id)
|
||||
continue
|
||||
}
|
||||
|
||||
tt := sel.Time(obj)
|
||||
if tt.Before(startTime) || tt.After(endTime) {
|
||||
logrus.Debugf("object %s time %s is outside of the time range", id, tt)
|
||||
continue
|
||||
}
|
||||
|
||||
if sel.Filter != nil {
|
||||
if !sel.Filter(obj) {
|
||||
logrus.Debugf("object %s is filtered", id)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user