mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 23:30:45 +08:00
fix(webhook): add logging
This commit is contained in:
parent
1b032b05fa
commit
1a0f13c0eb
@ -46,6 +46,8 @@ export const callWebhook = async (
|
|||||||
webhookUrl = webhooksData[0].url;
|
webhookUrl = webhooksData[0].url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.debug("Calling webhook...", { webhookUrl, teamId, specified, v1, eventType, awaitWebhook });
|
||||||
|
|
||||||
if (!webhookUrl) {
|
if (!webhookUrl) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -128,7 +130,6 @@ export const callWebhook = async (
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
...webhookUrl.headers,
|
...webhookUrl.headers,
|
||||||
},
|
},
|
||||||
timeout: v1 ? 10000 : 30000, // 10 seconds timeout (v1)
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user