Patch for logging with sentry