1
0
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:
Sylvain 2020-05-05 12:39:42 +02:00
parent 0609f444b0
commit ee3dea3f55

View File

@ -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/