lib/rocket_job/supervisor/shutdown.rb in rocketjob-4.1.0 vs lib/rocket_job/supervisor/shutdown.rb in rocketjob-4.1.1
- old
+ new
@@ -39,18 +39,18 @@
def self.register_signal_handlers
Signal.trap 'SIGTERM' do
Thread.new do
shutdown!
message = 'Shutdown signal (SIGTERM) received. Will shutdown as soon as active jobs/slices have completed.'
- logger.warn(message)
+ logger.info(message)
end
end
Signal.trap 'INT' do
Thread.new do
shutdown!
message = 'Shutdown signal (INT) received. Will shutdown as soon as active jobs/slices have completed.'
- logger.warn(message)
+ logger.info(message)
end
end
rescue StandardError
logger.warn 'SIGTERM handler not installed. Not able to shutdown gracefully'
end