From b23c1d11b33e7e80e79766bb3a2ce16365e377f8 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Fri, 20 Mar 2020 11:40:13 -0400 Subject: [PATCH] Added log line when BigBlueButton exception occurs (#1048) Co-authored-by: Jesus Federico --- app/controllers/application_controller.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ddc07cdf..6a767602 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -22,9 +22,6 @@ class ApplicationController < ActionController::Base before_action :redirect_to_https, :set_user_domain, :set_user_settings, :maintenance_mode?, :migration_error?, :user_locale, :check_admin_password, :check_user_role - # Manually handle BigBlueButton errors - rescue_from BigBlueButton::BigBlueButtonException, with: :handle_bigbluebutton_error - protect_from_forgery with: :exceptions # Retrieves the current user. @@ -193,8 +190,9 @@ class ApplicationController < ActionController::Base payload[:host] = @user_domain end - # Manually Handle BigBlueButton errors - def handle_bigbluebutton_error + # Manually handle BigBlueButton errors + rescue_from BigBlueButton::BigBlueButtonException do |ex| + logger.error "BigBlueButtonException: #{ex}" render "errors/bigbluebutton_error" end