fix log message

This commit is contained in:
c9s 2022-06-02 01:47:55 +08:00
parent 8aec251a62
commit 4f842c521a
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -191,7 +191,7 @@ func (s *Strategy) checkAndBorrow(ctx context.Context) {
})
log.Infof("sending borrow request %f %s", toBorrow.Float64(), marginAsset.Asset)
if err := s.marginBorrowRepay.BorrowMarginAsset(ctx, marginAsset.Asset, toBorrow); err != nil {
log.WithError(err).Errorf("repay error")
log.WithError(err).Errorf("borrow error")
continue
}
changed = true