discourse/lib/middleware
David Taylor 8963f1af30
FEATURE: Optional detailed performance logging for Sidekiq jobs (#7091)
By default, this does nothing. Two environment variables are available:

- `DISCOURSE_LOG_SIDEKIQ`

  Set to `"1"` to enable logging. This will log all completed jobs to `log/rails/sidekiq.log`, along with various db/redis/network statistics. This is useful to track down poorly performing jobs.

- `DISCOURSE_LOG_SIDEKIQ_INTERVAL`

  (seconds) Check running jobs periodically, and log their current duration. They will appear in the logs with `status:pending`. This is useful to track down jobs which take a long time, then crash sidekiq before completing.
2019-03-05 11:19:11 +00:00
..
anonymous_cache.rb FIX: error in response body to blocked crawlers, showing 500 Internal Server Error with status of 403 2018-09-14 15:40:20 -04:00
discourse_public_exceptions.rb DEV: correct intermittent test failure 2018-12-13 18:27:13 +11:00
enforce_hostname.rb SECURITY: enforce hostname to match discourse hostname 2018-11-15 15:23:06 +11:00
missing_avatars.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
omniauth_bypass_middleware.rb FEATURE: Allow connecting associated accounts when two-factor is enabled (#6754) 2018-12-11 13:19:00 +00:00
request_tracker.rb FEATURE: Optional detailed performance logging for Sidekiq jobs (#7091) 2019-03-05 11:19:11 +00:00
turbo_dev.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00