1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Use SafeNavigation for possible missing value (#4365)

This commit is contained in:
Antonis Berkakis 2019-11-06 16:49:34 +00:00 committed by Mike Perham
parent c045946d65
commit 4eb85f9369

View file

@ -103,10 +103,8 @@ module Sidekiq
if scrubbed_options[:password]
scrubbed_options[:password] = redacted
end
if scrubbed_options[:sentinels]
scrubbed_options[:sentinels].each do |sentinel|
sentinel[:password] = redacted if sentinel[:password]
end
scrubbed_options[:sentinels]&.each do |sentinel|
sentinel[:password] = redacted if sentinel[:password]
end
if Sidekiq.server?
Sidekiq.logger.info("Booting Sidekiq #{Sidekiq::VERSION} with redis options #{scrubbed_options}")