panic output detail info

This commit is contained in:
Gordon
2021-11-26 14:20:50 +08:00
parent b1244c0a1b
commit 72b09864ce
8 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -35,14 +35,14 @@ func init() {
}
mgoSession, err := mgo.DialWithInfo(mgoDailInfo)
if err != nil {
panic(err)
panic(err.Error())
}
DB.mgoSession = mgoSession
DB.mgoSession.SetMode(mgo.Monotonic, true)
c := DB.mgoSession.DB(config.Config.Mongo.DBDatabase).C(cChat)
err = c.EnsureIndexKey("uid")
if err != nil {
panic(err)
panic(err.Error())
}
// redis pool init