mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 01:52:08 +03:00
[http] Report unsuccessful response status lines at DBGVL_LOG
The precise HTTP response status code is currently visible only at DBGLVL_EXTRA. Allow for easier debugging by reporting the whole status line at DBGLVL_LOG for any unsuccessful responses. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1163,6 +1163,8 @@ static int http_parse_status ( struct http_transaction *http, char *line ) {
|
|||||||
response_rc = -EIO_OTHER;
|
response_rc = -EIO_OTHER;
|
||||||
}
|
}
|
||||||
http->response.rc = response_rc;
|
http->response.rc = response_rc;
|
||||||
|
if ( response_rc )
|
||||||
|
DBGC ( http, "HTTP %p status %s\n", http, status );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user