Browse Source

refactor: better message

pull/6875/head
Pranav C 1 year ago
parent
commit
8008befe33
  1. 9
      packages/nocodb/src/helpers/webhookHelpers.ts

9
packages/nocodb/src/helpers/webhookHelpers.ts

@ -413,9 +413,12 @@ export async function invokeWebhook(
}
} catch (e) {
if (e.response) {
logger.log(e.response.data);
logger.log(e.response.status);
logger.log(e.response.headers);
logger.log({
data: e.response.data,
status: e.response.status,
url: e.response.config?.url,
message: e.message,
});
} else {
logger.log(e.message, e.stack);
}

Loading…
Cancel
Save