Skip to content
Permalink
Browse files

[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>
  • Loading branch information
mcb30 committed Dec 28, 2017
1 parent ea29122 commit 659c484efcb04c434cc562162eb0231be41cb816
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/net/tcp/httpcore.c
@@ -1163,6 +1163,8 @@ static int http_parse_status ( struct http_transaction *http, char *line ) {
response_rc = -EIO_OTHER;
}
http->response.rc = response_rc;
if ( response_rc )
DBGC ( http, "HTTP %p status %s\n", http, status );

return 0;
}

0 comments on commit 659c484

Please sign in to comment.
You can’t perform that action at this time.