Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce log output #526

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions storageprovider/deal_assigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ func (ps *dealAssigner) AssignDeals(ctx context.Context, sid abi.SectorID, ssize
directDealLog.Errorf("assign direct deals failed: %v", err)
errs = multierror.Append(errs, err)
}
log.Infof("assigned direct deals %d for miner %v", len(deals), sid.Miner)

var out []*types.DealInfoV2
for _, d := range deals {
Expand All @@ -448,6 +447,7 @@ func (ps *dealAssigner) AssignDeals(ctx context.Context, sid abi.SectorID, ssize
})
}
if len(out) > 0 {
log.Infof("assigned direct deals %d for miner %v", len(deals), sid.Miner)
return out, nil
}

Expand All @@ -468,7 +468,6 @@ func (ps *dealAssigner) AssignDeals(ctx context.Context, sid abi.SectorID, ssize
EndEpoch: d.EndEpoch,
})
}
log.Infof("assigned deals %d for miner %v", len(oldDeals), sid.Miner)
} else {
directDealLog.Errorf("assign unpacked deals failed: %v", err)
errs = multierror.Append(errs, err)
Expand All @@ -477,6 +476,7 @@ func (ps *dealAssigner) AssignDeals(ctx context.Context, sid abi.SectorID, ssize
if len(out) == 0 {
return out, errs.ErrorOrNil()
}
log.Infof("assigned deals %d for miner %v", len(oldDeals), sid.Miner)

return out, nil
}
Expand Down
Loading