diff --git a/app/models/concerns/log_destroy_performer.rb b/app/models/concerns/log_destroy_performer.rb index d53d8ce3bdd..62215c2f6ae 100644 --- a/app/models/concerns/log_destroy_performer.rb +++ b/app/models/concerns/log_destroy_performer.rb @@ -10,9 +10,12 @@ module LogDestroyPerformer after_destroy :log_who_destroyed def log_who_destroyed - return if destroyed_by.nil? - - Rails.logger.info "#{self.class} #{id} deleted by #{destroyed_by.id}" + message = if destroyed_by.nil? + "#{self.class} #{id} deleted" + else + "#{self.class} #{id} deleted by #{destroyed_by.id} <#{destroyed_by.email}>" + end + Rails.logger.info message end end end