Replace explicit Sentry capture with logger call
Created by: jhchabran
Part of https://github.com/sourcegraph/sourcegraph/issues/35846
Because we have Sentry sinks, the error will still be reported, on environment where a sentry DSN is given in the site-config.
Test plan
Ran tests locally, really small change.