浏览代码

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

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

1163
 		response_rc = -EIO_OTHER;
1163
 		response_rc = -EIO_OTHER;
1164
 	}
1164
 	}
1165
 	http->response.rc = response_rc;
1165
 	http->response.rc = response_rc;
1166
+	if ( response_rc )
1167
+		DBGC ( http, "HTTP %p status %s\n", http, status );
1166
 
1168
 
1167
 	return 0;
1169
 	return 0;
1168
 }
1170
 }

正在加载...
取消
保存