SupabaseS
Supabase11mo ago
static

Is it normal practice to log errors returned by supabase?

Hey! Quick question, I'm currently working on a website and I'm using sentry to handle errors that occur in my code. What my current thought process is whenever a supabase query (insert, update, rpc, ...) has some error provided in the error variable, is it fine that I log the error into my database? I log it because I expect supabase to not have some error randomly, and I assume that if there is an error it probably needs to be looked at and is not normal. The thing is, I noticed supabase returns an error for say .single() if there isn't one found and that's not an error that needs to be logged.
Was this page helpful?