Report lndhub errors to Sentry

This commit is contained in:
Râu Cao
2023-06-05 13:51:40 +03:00
parent 7000908891
commit 82019f47be
2 changed files with 12 additions and 8 deletions

View File

@@ -37,8 +37,8 @@ class Services::LightningController < ApplicationController
session[:ln_auth_token] = auth_token
@ln_auth_token = auth_token
end
rescue
# TODO add exception tracking
rescue => e
Sentry.capture_exception(e) if Setting.sentry_enabled?
end
def set_current_section