added additional data for custom data and a logging event for adding additional data to the error