Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Dec 29, 2023
1 parent bcb5f8d commit a5af8f9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ module ActiveSupport
# More hacks to try and stop Rails from being it's own worst enemy.
class Logger
class << self
undef :logger_outputs_to?, :broadcast
undef :logger_outputs_to?
end

# Prevent Console from trying to merge loggers
def self.logger_outputs_to?(*args)
true
end

# Prevent broadcasting since SemanticLogger already supports multiple loggers
def self.broadcast(logger)
Module.new
end

def self.new(*args, **kwargs)
SemanticLogger[self]
end
Expand Down

0 comments on commit a5af8f9

Please sign in to comment.