Browse Source

[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>
tags/v1.20.1
Michael Brown 6 years ago
parent
commit
659c484efc
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/net/tcp/httpcore.c

+ 2
- 0
src/net/tcp/httpcore.c View File

@@ -1163,6 +1163,8 @@ static int http_parse_status ( struct http_transaction *http, char *line ) {
1163 1163
 		response_rc = -EIO_OTHER;
1164 1164
 	}
1165 1165
 	http->response.rc = response_rc;
1166
+	if ( response_rc )
1167
+		DBGC ( http, "HTTP %p status %s\n", http, status );
1166 1168
 
1167 1169
 	return 0;
1168 1170
 }

Loading…
Cancel
Save