lib/dispatch-rider/demultiplexer.rb in dispatch-rider-1.2.9 vs lib/dispatch-rider/demultiplexer.rb in dispatch-rider-1.2.10
- old
+ new
@@ -34,10 +34,10 @@
private
def install_term_trap
SignalTools.append_trap('TERM') do
- logger.info "Got SIGTERM while executing: #{message_info_fragment(@current_message)}"
+ logger.info "Got SIGTERM while executing: #{message_info_fragment(@current_message)}" if @current_message
end
end
def with_current_message(message)
@current_message = message