Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where
bootstrap.rb
overwrites the level
of a `Broadcast…
…Logger`'s `broadcasts`. In `bootstrap.rb` we set the `Rails.logger.level` to `config.log_level`. But at this point, we may have already set up a `BroadcastLogger` with multiple broadcasts that have different levels. So, calling `level=` on the `BroadcastLogger` will overwrite the level of the individual broadcasts. So instead, let's only set the `Rails.logger.level` if the logger is not a `BroadcastLogger`.
- Loading branch information