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:
parent
c045946d65
commit
4eb85f9369
1 changed files with 2 additions and 4 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Reference in a new issue