lib/rocket_job/worker.rb in rocketjob-2.1.1 vs lib/rocket_job/worker.rb in rocketjob-2.1.2
- old
+ new
@@ -272,10 +272,10 @@
update_attributes_and_reload(
'heartbeat.updated_at' => Time.now,
'heartbeat.current_threads' => worker_count
)
rescue MongoMapper::DocumentNotFound
- logger.error('Worker has been destroyed. Going down hard!')
+ logger.warn('Worker has been destroyed. Going down hard!')
break
end
end
end
logger.info 'Shutdown'