check log
This commit is contained in:
parent
c2a2960b43
commit
a095bb9f08
1
index.go
1
index.go
|
@ -13,6 +13,7 @@ import (
|
||||||
|
|
||||||
// CreateIndex ...
|
// CreateIndex ...
|
||||||
func CreateIndex(colName string, ind mongo.IndexModel) {
|
func CreateIndex(colName string, ind mongo.IndexModel) {
|
||||||
|
fmt.Println("db name:", db.Name())
|
||||||
// Get collection
|
// Get collection
|
||||||
col := db.Collection(colName)
|
col := db.Collection(colName)
|
||||||
if col == nil {
|
if col == nil {
|
||||||
|
|
Loading…
Reference in New Issue