Skip to content

Commit

Permalink
adding other debugs to logs store response
Browse files Browse the repository at this point in the history
  • Loading branch information
tokurz committed Aug 19, 2024
1 parent 693ab71 commit 9bb9637
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions overlord/devicestate/handlers_serial.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,12 @@ func submitSerialRequest(t *state.Task, serialRequest string, client *http.Clien
bodyString := string(bodyBytes)
switch resp.StatusCode {
case 200, 201:
fmt.Printf("######## Body response success code 200,201: %v\n", bodyString)
case 202:
fmt.Printf("###### Body response success: %v\n", bodyString)
fmt.Printf("######## Body response success code 202: %v\n", bodyString)
return nil, nil, errPoll
default:

fmt.Printf("###### Body response from store error body: %v\n", bodyString)
fmt.Printf("######## Body response from store error body: %v\n", bodyString)
return nil, nil, retryBadStatus(t, 0, "cannot deliver device serial request bad request", resp)
}

Expand Down

0 comments on commit 9bb9637

Please sign in to comment.