mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53: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()
|
obj := v.Interface()
|
||||||
id := sel.ID(obj)
|
id := sel.ID(obj)
|
||||||
if _, exists := ids[id]; exists {
|
if _, exists := ids[id]; exists {
|
||||||
|
logrus.Debugf("object %s already exists, skipping", id)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
tt := sel.Time(obj)
|
tt := sel.Time(obj)
|
||||||
if tt.Before(startTime) || tt.After(endTime) {
|
if tt.Before(startTime) || tt.After(endTime) {
|
||||||
|
logrus.Debugf("object %s time %s is outside of the time range", id, tt)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if sel.Filter != nil {
|
if sel.Filter != nil {
|
||||||
if !sel.Filter(obj) {
|
if !sel.Filter(obj) {
|
||||||
|
logrus.Debugf("object %s is filtered", id)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user