app/models/naf/machine.rb in naf-2.1.0 vs app/models/naf/machine.rb in naf-2.1.1
- old
+ new
@@ -212,10 +212,10 @@
end
end
def mark_machine_down(by_machine)
marking_at = Time.zone.now
- machine_logger.alarm "#{by_machine.id} marking #{self} as down at #{marking_at}"
+ machine_logger.alarm "#{by_machine.try(:id)} marking #{self} as down at #{marking_at}"
self.marked_down = true
self.marked_down_by_machine_id = by_machine.id
self.marked_down_at = marking_at
save!
mark_processes_as_dead(by_machine)