This commit is contained in:
Mike Perham 2015-04-29 14:12:32 -07:00
parent be10761693
commit a695ff347a
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ POOL2 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6378/0") }
mount Sidekiq::Pro::Web.with(redis_pool: POOL1) => '/sidekiq1'
mount Sidekiq::Pro::Web.with(redis_pool: POOL2) => '/sidekiq2'
```
- **SECURITY** Fix batch XSS in error data. Thanks to moneybird.com for
reporting the issue.
2.0.1
-----------

View File

@ -6,7 +6,7 @@ module Sidekiq
class Logger
def call(ex, ctxHash)
Sidekiq.logger.warn(ctxHash) if !ctxHash.empty?
Sidekiq.logger.warn ex
Sidekiq.logger.warn "#{ex.class.name}: #{ex.message}"
Sidekiq.logger.warn ex.backtrace.join("\n") unless ex.backtrace.nil?
end