diff --git a/cmd/v2/ui/views/sociaty_mine.go b/cmd/v2/ui/views/sociaty_mine.go index e95c2dc53..074c1c80e 100644 --- a/cmd/v2/ui/views/sociaty_mine.go +++ b/cmd/v2/ui/views/sociaty_mine.go @@ -180,6 +180,10 @@ func (this *SociatyMineView) CreateView(t *model.TestCase) fyne.CanvasObject { return } + if this.master == nil { + logrus.Errorf("会长数据是空,公会ID:%v", this.sociaty.Id) + return + } //会长信息 pName := widget.NewEntry() pName.Text = this.master.Name diff --git a/modules/user/module.go b/modules/user/module.go index 44a057cdc..136ad8e75 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -110,7 +110,7 @@ func (this *User) GetUser(uid string) (user *pb.DBUser) { if this.IsCross() { user, err = this.getRemoteUser(uid) if err != nil { - this.Errorln("查询远程玩家信息", err) + this.Errorf("查询远程玩家信息 tag:%v err:%v", this.service.GetTag(), err) return nil } } else { diff --git a/sys/db/db.go b/sys/db/db.go index 5da54feba..9febbd88d 100644 --- a/sys/db/db.go +++ b/sys/db/db.go @@ -175,7 +175,6 @@ func (this *DB) ServerDBConn(stage string) (conn *DBConn, err error) { if !ok { err = fmt.Errorf("DBConn:%s on init", stage) } - log.Debug("servers", log.Field{Key: stage, Value: this.servers[stage]}) return }