lib/backup/notifier/mail.rb in backup-3.0.27 vs lib/backup/notifier/mail.rb in backup-3.1.0
- old
+ new
@@ -148,10 +148,10 @@
if send_log
email.convert_to_multipart
email.attachments["#{@model.time}.#{@model.trigger}.log"] = {
:mime_type => 'text/plain;',
- :content => Logger.messages.join("\n")
+ :content => Logger.messages.map(&:formatted_lines).flatten.join("\n")
}
end
email.deliver!
end