File tree 3 files changed +14
-7
lines changed
lib/lograge/rails_ext/action_cable
3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,7 @@ def notification_payload(method_name)
22
22
end
23
23
end
24
24
25
- ActionCable ::Channel ::Base . prepend ( Lograge ::ActionCable ::ChannelInstrumentation )
25
+
26
+ ActiveSupport . on_load ( :action_cable_channel ) do
27
+ ActionCable ::Channel ::Base . prepend ( Lograge ::ActionCable ::ChannelInstrumentation )
28
+ end
Original file line number Diff line number Diff line change @@ -18,4 +18,6 @@ def notification_payload(method_name)
18
18
end
19
19
end
20
20
21
- ActionCable ::Connection ::Base . prepend ( Lograge ::ActionCable ::ConnectionInstrumentation )
21
+ ActiveSupport . on_load ( :action_cable_connection ) do
22
+ ActionCable ::Connection ::Base . prepend ( Lograge ::ActionCable ::ConnectionInstrumentation )
23
+ end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- module ActionCable
4
- module Server
5
- class Base
6
- mattr_accessor :logger
7
- self . logger = Lograge ::SilentLogger . new ( config . logger )
3
+ ActiveSupport . on_load ( :action_cable ) do
4
+ module ActionCable
5
+ module Server
6
+ class Base
7
+ mattr_accessor :logger
8
+ self . logger = Lograge ::SilentLogger . new ( config . logger )
9
+ end
8
10
end
9
11
end
10
12
end
You can’t perform that action at this time.
0 commit comments