UnconditionedLife / smum

SMUM Checkin for Santa Maria Urban Ministries (San Jose, California)
https://www.santamariasj.org
3 stars 0 forks source link

Create an error-logging mechanism to record errors in a database table #150

Closed scott-r closed 7 months ago

scott-r commented 11 months ago

Currently, the app can display error messages on the browser console and the print server writes them to a log file. The browser console is not persistent, and neither source is remotely accessible. We need a new mechanism to store error messages (with timestamps) in a database table. Like the print queue for receipts, it should be accessible via a REST API without authentication so that it can be used by the print server and can record failures when authenticating the the database.

scott-r commented 11 months ago

Note that this mechanism should be used for unexpected errors such as assertion failures, inability to access network services, etc. It should not be used for normal runtime errors (e.g. mistyped client id) or debug tracing.