mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 19:39:16 +08:00
Nick: errors -> warn
This commit is contained in:
parent
7ec278a908
commit
c6cad942ab
@ -456,7 +456,7 @@ export class WebCrawler {
|
|||||||
}
|
}
|
||||||
}).filter(x => x !== null) as string[])];
|
}).filter(x => x !== null) as string[])];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.error("Failed to call html-transformer! Falling back to cheerio...", {
|
this.logger.warn("Failed to call html-transformer! Falling back to cheerio...", {
|
||||||
error,
|
error,
|
||||||
module: "scrapeURL", method: "extractMetadata"
|
module: "scrapeURL", method: "extractMetadata"
|
||||||
});
|
});
|
||||||
|
@ -41,7 +41,7 @@ export async function extractLinks(html: string, baseUrl: string): Promise<strin
|
|||||||
try {
|
try {
|
||||||
return await extractLinksRust(html, baseUrl);
|
return await extractLinksRust(html, baseUrl);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error("Failed to call html-transformer! Falling back to cheerio...", {
|
logger.warn("Failed to call html-transformer! Falling back to cheerio...", {
|
||||||
error,
|
error,
|
||||||
module: "scrapeURL", method: "extractLinks"
|
module: "scrapeURL", method: "extractLinks"
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,7 @@ export async function extractMetadata(
|
|||||||
try {
|
try {
|
||||||
return await extractMetadataRust(meta, html);
|
return await extractMetadataRust(meta, html);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
meta.logger.error("Failed to call html-transformer! Falling back to cheerio...", {
|
meta.logger.warn("Failed to call html-transformer! Falling back to cheerio...", {
|
||||||
error,
|
error,
|
||||||
module: "scrapeURL", method: "extractMetadata"
|
module: "scrapeURL", method: "extractMetadata"
|
||||||
});
|
});
|
||||||
|
@ -65,7 +65,7 @@ export const htmlTransform = async (
|
|||||||
only_main_content: scrapeOptions.onlyMainContent,
|
only_main_content: scrapeOptions.onlyMainContent,
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error("Failed to call html-transformer! Falling back to cheerio...", {
|
logger.warn("Failed to call html-transformer! Falling back to cheerio...", {
|
||||||
error,
|
error,
|
||||||
module: "scrapeURL", method: "extractLinks"
|
module: "scrapeURL", method: "extractLinks"
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user