diff --git a/lib/lograge/log_subscribers/action_cable.rb b/lib/lograge/log_subscribers/action_cable.rb index 73d2649a..a1cf3781 100644 --- a/lib/lograge/log_subscribers/action_cable.rb +++ b/lib/lograge/log_subscribers/action_cable.rb @@ -13,9 +13,9 @@ class ActionCable < Base def initial_data(payload) { - method: {}, - path: {}, - format: {}, + method: nil, + path: nil, + format: nil, params: payload[:data], controller: payload[:channel_class] || payload[:connection_class], action: payload[:action]