xbalance: show balance error message

This commit is contained in:
c9s 2021-08-17 12:18:29 +08:00
parent fc860cd9a9
commit cf29cfadd0

View File

@ -198,6 +198,7 @@ func (s *Strategy) checkBalance(ctx context.Context, sessions map[string]*bbgo.E
fromSession, _, err := s.findHighestBalanceLevelSession(sessions, requiredAmount)
if err != nil || fromSession == nil {
s.Notifiability.Notify("can not find session with enough balance")
log.WithError(err).Errorf("can not find session with enough balance")
return
}