mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix if logger is not debug
This commit is contained in:
parent
0609f444b0
commit
ee3dea3f55
@ -9,7 +9,7 @@ class ProjectIndexerWorker
|
||||
logger = Sidekiq.logger.level == Logger::DEBUG ? Sidekiq.logger : nil
|
||||
client = Elasticsearch::Model.client
|
||||
|
||||
logger.debug [operation, "ID: #{record_id}"]
|
||||
logger&.debug [operation, "ID: #{record_id}"]
|
||||
|
||||
case operation.to_s
|
||||
when /index/
|
||||
|
Loading…
x
Reference in New Issue
Block a user