fixing sentry logging -- ensure we've switched debug on before examing the value