When debugging my app I do the following.
.catch(error => {
console.log("error is", error);
}
Which is is fine but what should I do in production? I don't really want to leave all these console.logs in.
Thanks.
When debugging my app I do the following.
.catch(error => {
console.log("error is", error);
}
Which is is fine but what should I do in production? I don't really want to leave all these console.logs in.
Thanks.
Usually, in production, we would use some error logging mechanism and the one I used the most ELMAH. Or implement some other logging mechanism by yourself and log it so you can check it whenever you wanted.