mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:03:13 +08:00
fe5bfc8d3b
Most of our logging goes through Rails.logger, and therefore appears in Logster at `/logs` on a site. The Sidekiq logger was bypassing this and writing directly to STDERR. Unfortunately it's not possible to do `Sidekiq.logger = Rails.logger` because `Sidekiq#logger=` applies a number of patches to the logger instance, causing our whole logging system to break. Instead, this commit adds a dedicated Logger instance with no output, which is then patched to forward all messages directly to `Rails.logger` |
||
---|---|---|
.. | ||
base.rb | ||
email_sync.rb | ||
rails_autospec.rb | ||
sidekiq.rb |