Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable rails log for ActionCable events

In development environment, rails logger logs all ActionCable events which is sometimes annoying (for my project, every now and then it's transmitting messages and log tail is running like wild horse). What is an efficient way to suppress all event logs from ActionCable? Also, how can I suppress some specific ActionCable events?

like image 348
Shakil Avatar asked Jul 14 '16 05:07

Shakil


1 Answers

To completely disable logging from ActionCable you should configure ActionCable to use logger that do nothing

ActionCable.server.config.logger = Logger.new(nil)
like image 179
Brazhnyk Yuriy Avatar answered Sep 28 '22 04:09

Brazhnyk Yuriy