Go to file
Alejandro Sirgo Rica dfde363aa6 src: log backtrace in unhandled error cases
Log an error message in known error cases and log a backtrace
otherwise.

Define a new error type OgError to be used in all the 'raise'
blocks to define the error message to log. The exception
propagates until it reaches send_internal_server_error() where
the exception type is checked. If the type is OgError we log
the exception message. Logs the backtrace for other types.

The initial error implementation printed a backtrace everytime
an error ocurred. The next iteration changed it to only print
a backtrace in a very particular case but ended up omiting too
much information such as syntax errors or unknown error context.
The actual implementation only logs the cases we already cover in
the codebase and logs a bracktrace in the others, enabling a
better debugging experience.
2024-04-03 13:31:10 +02:00
cfg src: improve logging 2022-06-08 10:27:06 +02:00
src src: log backtrace in unhandled error cases 2024-04-03 13:31:10 +02:00
tests ogClient is AGPLv3+ 2021-05-14 00:19:28 +02:00
.gitignore Create new ogClient 2020-01-19 19:50:44 +01:00
COPYING Rename LICENSE to COPYING 2020-06-18 16:45:46 +02:00
ogclient src: log backtrace in unhandled error cases 2024-04-03 13:31:10 +02:00
setup.py Rename 'linux' folder and operations to 'live' 2020-12-03 13:38:43 +01:00