no message
This commit is contained in:
parent
663b93d52d
commit
ac7492c2db
|
|
@ -240,7 +240,7 @@ func (msm *MgoSessionMgr) GetPltMgoSession(plt, key string) *Session {
|
||||||
if c, ok := msm.GetCfg(plt, key); ok {
|
if c, ok := msm.GetCfg(plt, key); ok {
|
||||||
s, err := newMgoSession(c.Username, c.Password, c.HostName, c.HostPort, c.Options)
|
s, err := newMgoSession(c.Username, c.Password, c.HostName, c.HostPort, c.Options)
|
||||||
if s == nil || err != nil {
|
if s == nil || err != nil {
|
||||||
logger.Logger.Error("GetPltMgoSession(%s,%s) err:%v", plt, key, err)
|
logger.Logger.Errorf("GetPltMgoSession(%s,%s) err:%v config:%+v", plt, key, err, *c)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
ss := &Session{Session: s, cfg: c}
|
ss := &Session{Session: s, cfg: c}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue