better error logs

This commit is contained in:
goenning 2023-09-01 16:28:18 +01:00
parent 0f28be3d2b
commit 343319f782
2 changed files with 4 additions and 2 deletions

View file

@ -62,7 +62,8 @@ export async function trackEvent(
console.warn(`Failed to send event "${eventName}": ${response.status} ${responseBody}`);
}
} catch (e) {
console.warn(`Failed to send event "${eventName}": ${e}`);
console.warn(`Failed to send event "${eventName}"`);
console.warn(e);
}
}