hoist-react icon indicating copy to clipboard operation
hoist-react copied to clipboard

Consider logging exceptions caught by `LoadSupport`

Open ghsolomon opened this issue 5 months ago • 0 comments

LoadSupport.doLoadAsync catches exceptions thrown by HoistModel.doLoadAsync and updates its lastLoadException observable accordingly. It also includes the exception in the browser console log, at an appropriate log-level. However, it does not log these exceptions on the server.

Consider logging exceptions not marked as routine and not thrown on autoRefresh to the server so they are reported.

Alternatively, app developers should be encouraged to catch and handle exceptions themselves, but our current story is that LoadSupport will only know about uncaught exceptions (or exceptions that are caught, handled, and rethrown).

ghsolomon avatar Sep 13 '24 20:09 ghsolomon