Skip to content
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
10 changes: 10 additions & 0 deletions syz-ci/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,16 @@ func uploadFileHTTPPut(ctx context.Context, URL string, file io.Reader) error {

// Errorf logs non-fatal error and sends it to dashboard.
func (mgr *Manager) Errorf(msg string, args ...interface{}) {
for _, arg := range args {
err, _ := arg.(error)
if err == nil {
continue
}
if errors.Is(err, context.Canceled) {
// Context cancelation-related errors only create unnecessary noise.
return
}
}
log.Errorf(mgr.name+": "+msg, args...)
if mgr.dash != nil {
mgr.dash.LogError(mgr.name, msg, args...)
Expand Down
Loading