mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 15:29:03 +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[])];
|
||||
} 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,
|
||||
module: "scrapeURL", method: "extractMetadata"
|
||||
});
|
||||
|
@ -41,7 +41,7 @@ export async function extractLinks(html: string, baseUrl: string): Promise<strin
|
||||
try {
|
||||
return await extractLinksRust(html, baseUrl);
|
||||
} 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,
|
||||
module: "scrapeURL", method: "extractLinks"
|
||||
});
|
||||
|
@ -26,7 +26,7 @@ export async function extractMetadata(
|
||||
try {
|
||||
return await extractMetadataRust(meta, html);
|
||||
} 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,
|
||||
module: "scrapeURL", method: "extractMetadata"
|
||||
});
|
||||
|
@ -65,7 +65,7 @@ export const htmlTransform = async (
|
||||
only_main_content: scrapeOptions.onlyMainContent,
|
||||
})
|
||||
} 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,
|
||||
module: "scrapeURL", method: "extractLinks"
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user