mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
chore: added debug code
This commit is contained in:
@@ -53,7 +53,11 @@ func RecreateIndexes(col *mongo.Col, desiredIndexes []mongo2.IndexModel) {
|
||||
}
|
||||
|
||||
// Create new indexes
|
||||
col.MustCreateIndexes(desiredIndexes)
|
||||
err = col.CreateIndexes(desiredIndexes)
|
||||
if err != nil {
|
||||
log.Errorf("error creating indexes: %v", err)
|
||||
return
|
||||
}
|
||||
log.Infof("recreated indexes for collection: %s", col.GetCollection().Name())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user