mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00
resourceType lowercase fix: (#483)
follow up to #481, check reqresp.resourceType with lowercase value just set message based on resourceType value
This commit is contained in:
parent
63cedbc91a
commit
65133c9d9d
1 changed files with 7 additions and 14 deletions
|
@ -635,20 +635,13 @@ export class Recorder {
|
|||
body,
|
||||
});
|
||||
} catch (e) {
|
||||
const type = reqresp.resourceType;
|
||||
if (type === "Document") {
|
||||
logger.debug(
|
||||
"document not loaded in browser, possibly other URLs missing",
|
||||
{ url, type: reqresp.resourceType },
|
||||
"recorder",
|
||||
);
|
||||
} else {
|
||||
logger.debug(
|
||||
"URL not loaded in browser",
|
||||
{ url, type: reqresp.resourceType },
|
||||
"recorder",
|
||||
);
|
||||
}
|
||||
const { resourceType } = reqresp;
|
||||
const msg =
|
||||
resourceType === "document"
|
||||
? "document not loaded in browser, possibly other URLs missing"
|
||||
: "URL not loaded in browser";
|
||||
|
||||
logger.debug(msg, { url, resourceType }, "recorder");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue