forked from External/greenlight
GRN2-xx: Removed unnecessary log lines (#930)
* Removed unnecessary log lines * Removed empty function
This commit is contained in:
parent
397b4b742f
commit
5949a6e243
|
@ -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
|
||||
|
|
|
@ -158,11 +158,5 @@ module Greenlight
|
|||
|
||||
# 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
|
||||
|
|
|
@ -110,7 +110,9 @@ Rails.application.configure do
|
|||
# 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
|
||||
|
|
Loading…
Reference in New Issue