Skip to content

Commit e7cdcd5

Browse files
authored
Add a hint in logs if a weblog response is 404 (#4207)
1 parent b02a802 commit e7cdcd5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

utils/_weblog.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ def request(
164164
logger.error(f"Request {rid} raise an error: {e}")
165165
else:
166166
logger.debug(f"Request {rid}: {response.status_code}")
167+
if response.status_code == 404:
168+
logger.error(
169+
"💡 if your test is failing, you may need to add missing_feature for this weblog in manifest file."
170+
)
167171

168172
return HttpResponse(
169173
{

0 commit comments

Comments
 (0)