Add error handling to log creation with files
We've had some bad cases where a log entry is created, but the file is not saved due to filesystem errors. So we put the file creation in a try-except block and if it fails, delete the log message that was just created before re-raising the exception.
Loading
Please register or sign in to comment