toastdriven / restless

A lightweight REST miniframework for Python.
http://restless.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
832 stars 107 forks source link

Issue 104 resolved #140

Open supercoder-dev opened 5 months ago

supercoder-dev commented 5 months ago

To solve the problem of logging uncaught exceptions, we need to import the logging library and add a logging statement before returning the error response in the handle method of the Resource class. To solve the problem of logging uncaught exceptions, we need to import the logging library, initialize the logger, and add a logging statement inside the except block to log the exception.