From 176a64ecc3d62af9c52ea193b41e6b18f8476191 Mon Sep 17 00:00:00 2001 From: Tony Kurz Date: Fri, 1 Mar 2024 20:03:23 +0100 Subject: [PATCH] adding more debug parts --- overlord/devicestate/handlers_serial.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overlord/devicestate/handlers_serial.go b/overlord/devicestate/handlers_serial.go index 71b425d3d63..c8190ad0041 100644 --- a/overlord/devicestate/handlers_serial.go +++ b/overlord/devicestate/handlers_serial.go @@ -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() @@ -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