Skip to content

Commit

Permalink
adding more debug parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Kurz authored and Tony Kurz committed Mar 1, 2024
1 parent b0f3d52 commit 176a64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlord/devicestate/handlers_serial.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func submitSerialRequest(t *state.Task, serialRequest string, client *http.Clien

resp, err := client.Do(req)
if err != nil {
return nil, nil, retryErr(t, 0, "cannot deliver device serial request: %v", err)
return nil, nil, retryErr(t, 0, "cannot deliver device serial request retry error: %v : method: %v , header: %v", err, req.Method, req.Header.Get("X-Tpm-Body-Signature"))
}
defer resp.Body.Close()

Expand All @@ -479,7 +479,7 @@ func submitSerialRequest(t *state.Task, serialRequest string, client *http.Clien
case 202:
return nil, nil, errPoll
default:
return nil, nil, retryBadStatus(t, 0, "cannot deliver device serial request", resp)
return nil, nil, retryBadStatus(t, 0, "cannot deliver device serial request bad request", resp)
}

var serial *asserts.Serial
Expand Down

0 comments on commit 176a64e

Please sign in to comment.