refactoring: add error log for sentry
refactoring: add error log for sentry