add sentry error logging for every logged error.