Replies: 1 comment
-
If you're not seeing logs or Crashlytics alerts, the issue might be in several places - either in your code, environment variables, or even Crashlytics settings. Debugging Steps:
Here is a skeleton example to debug: exports.myFunction = functions.https.onRequest((request, response) => {
console.log("Function started");
console.log(`Discord Webhook: ${process.env.DISCORD_WEBHOOK}`);
// Your code here
console.log("Function ended");
}); This way, you can trace the function's execution and identify any issues. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I Tried to add the codes to cloud function for crashlytics alert system.
I defined env variable for Discord Webhook.
But it does not work. There is no log message. So, I guess there is a problem with reaching Crashlytics.
What can be the problem?
Beta Was this translation helpful? Give feedback.
All reactions