mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +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;
|
||||
}
|
||||
|
||||
logger.debug("Calling webhook...", { webhookUrl, teamId, specified, v1, eventType, awaitWebhook });
|
||||
|
||||
if (!webhookUrl) {
|
||||
return null;
|
||||
}
|
||||
|
@ -128,7 +130,6 @@ export const callWebhook = async (
|
|||
"Content-Type": "application/json",
|
||||
...webhookUrl.headers,
|
||||
},
|
||||
timeout: v1 ? 10000 : 30000, // 10 seconds timeout (v1)
|
||||
}
|
||||
)
|
||||
.catch((error) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user