You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously you could just do a try/catch for every single one of your database queries and log that to your error log in the catch. However, I wonder if it's possible in Adonis in production to automatically have this exception print the database error in the error log, while not showing it in the response.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Obviously you could just do a
try/catch
for every single one of your database queries and log that to your error log in thecatch
. However, I wonder if it's possible in Adonis in production to automatically have this exception print the database error in the error log, while not showing it in the response.Beta Was this translation helpful? Give feedback.
All reactions