瀏覽代碼

[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 7 年之前
父節點
當前提交
659c484efc
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/net/tcp/httpcore.c

+ 2
- 0
src/net/tcp/httpcore.c 查看文件

@@ -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…
取消
儲存