forked from External/greenlight
		
	Added log line when BigBlueButton exception occurs (#1048)
Co-authored-by: Jesus Federico <jesus@123it.ca>
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user