Improve logging and add Sentry