remove redundant logging

This commit is contained in:
Zachary Chai 2017-04-21 16:33:06 -04:00
parent b27f82bbb4
commit 3d216ba41f
1 changed files with 4 additions and 3 deletions

View File

@ -44,10 +44,10 @@ namespace :conf do
passed
# send a test email to specified email address
print "Sending Test Email"
print "Sending Test Email:"
if email_address
print "\n"
send_email(email_address)
print(": Sent\n")
else
failed("No email address specified")
end
@ -72,7 +72,8 @@ end
def send_email(email_address)
TestMailer.test_email(email_address).deliver
rescue => exc
failed("Error sending test email - #{exc}")
print("Error sending test email - #{exc}\n")
exit
end
def failed(msg)