Skip to content

Commit

Permalink
GRN2-xx: Removed unnecessary log lines (bigbluebutton#930)
Browse files Browse the repository at this point in the history
* Removed unnecessary log lines

* Removed empty function
  • Loading branch information
farhatahmad committed Feb 12, 2020
1 parent 397b4b7 commit 5949a6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 0 additions & 5 deletions app/channels/waiting_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@

class WaitingChannel < ApplicationCable::Channel
def subscribed
Rails.logger.info "subscribed [#{params[:useruid]}:#{params[:roomuid]}]"
stream_from "#{params[:roomuid]}_waiting_channel"
end

def unsubscribed
Rails.logger.info "unsubscribed [#{params[:useruid]}:#{params[:roomuid]}]"
end
end
6 changes: 0 additions & 6 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,5 @@ class Application < Rails::Application

# Default admin password
config.admin_password_default = ENV['ADMIN_PASSWORD'] || 'administrator'

config.action_cable.log_tags = [
->(request) { request.session['user_id'] || "no-account" },
:action_cable,
->(request) { request.uuid }
]
end
end
4 changes: 3 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@
# Use Lograge for logging
config.lograge.enabled = true

config.lograge.ignore_actions = ["HealthCheckController#all", "ThemesController#index"]
config.lograge.ignore_actions = ["HealthCheckController#all", "ThemesController#index",
"ApplicationCable::Connection#connect", "WaitingChannel#subscribe",
"ApplicationCable::Connection#disconnect", "WaitingChannel#unsubscribe"]

config.lograge.custom_options = lambda do |event|
# capture some specific timing values you are interested in
Expand Down

0 comments on commit 5949a6e

Please sign in to comment.