diff options
Diffstat (limited to 'lib/action_cable/connection/tagged_logger_proxy.rb')
-rw-r--r-- | lib/action_cable/connection/tagged_logger_proxy.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/action_cable/connection/tagged_logger_proxy.rb b/lib/action_cable/connection/tagged_logger_proxy.rb index d99cc2e9a3..e0c0075adf 100644 --- a/lib/action_cable/connection/tagged_logger_proxy.rb +++ b/lib/action_cable/connection/tagged_logger_proxy.rb @@ -1,7 +1,9 @@ module ActionCable module Connection + # Allows the use of per-connection tags against the server logger. This wouldn't work using the tradional + # ActiveSupport::TaggedLogging-enhanced Rails.logger, as that logger will reset the tags between requests. + # The connection is long-lived, so it needs its own set of tags for its independent duration. class TaggedLoggerProxy - def initialize(logger, tags:) @logger = logger @tags = tags.flatten |