Skip to content

Commit

Permalink
zedcloud: remove duplicate logging
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Ostarek <christoph@zededa.com>
  • Loading branch information
christoph-zededa committed Jan 23, 2023
1 parent 03beb2f commit f0c00a5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/pillar/zedcloud/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,12 +789,6 @@ func SendOnIntf(workContext context.Context, ctx *ZedCloudContext, destURL strin
errStr := fmt.Sprintf("SendOnIntf to %s reqlen %d statuscode %d %s body: %s",
reqUrl, reqlen, resp.StatusCode,
http.StatusText(resp.StatusCode), utils.HexStrings(contents, 256))
// zedrouter probing sends 'http' to zedcloud server, expect to get status of 404, not an error
if resp.StatusCode != http.StatusNotFound || ctx.AgentName != "zedrouter" {
log.Errorln(errStr)
log.Errorf("Got payload for status %s: %s",
http.StatusText(resp.StatusCode), contents)
}
// Get caller to schedule a retry based on StatusCode
return resp, nil, types.SenderStatusNone, errors.New(errStr)
}
Expand Down

0 comments on commit f0c00a5

Please sign in to comment.