mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +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
|
logger = Sidekiq.logger.level == Logger::DEBUG ? Sidekiq.logger : nil
|
||||||
client = Elasticsearch::Model.client
|
client = Elasticsearch::Model.client
|
||||||
|
|
||||||
logger.debug [operation, "ID: #{record_id}"]
|
logger&.debug [operation, "ID: #{record_id}"]
|
||||||
|
|
||||||
case operation.to_s
|
case operation.to_s
|
||||||
when /index/
|
when /index/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user