File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
lib/rails_semantic_logger/extensions/active_support Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 41
41
- rails : " 7.0"
42
42
ruby : 3.2
43
43
- rails : " 7.0"
44
- ruby : jruby
44
+ ruby : jruby
45
+ - rails : " 7.1"
46
+ ruby : " 3.0"
47
+ - rails : " 7.1"
48
+ ruby : 3.1
49
+ - rails : " 7.1"
50
+ ruby : 3.2
51
+ - rails : " 7.1"
52
+ ruby : jruby
45
53
46
54
env :
47
55
BUNDLE_GEMFILE : gemfiles/rails_${{ matrix.rails }}.gemfile
Original file line number Diff line number Diff line change @@ -4,19 +4,22 @@ module ActiveSupport
4
4
# More hacks to try and stop Rails from being it's own worst enemy.
5
5
class Logger
6
6
class << self
7
- undef :logger_outputs_to? , :broadcast
7
+ undef :logger_outputs_to?
8
+
9
+ # Prevent broadcasting since SemanticLogger already supports multiple loggers
10
+ if method_defined? ( :broadcast )
11
+ undef :broadcast
12
+ def broadcast ( logger )
13
+ Module . new
14
+ end
15
+ end
8
16
end
9
17
10
18
# Prevent Console from trying to merge loggers
11
19
def self . logger_outputs_to? ( *args )
12
20
true
13
21
end
14
22
15
- # Prevent broadcasting since SemanticLogger already supports multiple loggers
16
- def self . broadcast ( logger )
17
- Module . new
18
- end
19
-
20
23
def self . new ( *args , **kwargs )
21
24
SemanticLogger [ self ]
22
25
end
You can’t perform that action at this time.
0 commit comments