forked from External/greenlight
remove redundant logging
This commit is contained in:
parent
b27f82bbb4
commit
3d216ba41f
|
@ -44,10 +44,10 @@ namespace :conf do
|
||||||
passed
|
passed
|
||||||
|
|
||||||
# send a test email to specified email address
|
# send a test email to specified email address
|
||||||
print "Sending Test Email"
|
print "Sending Test Email:"
|
||||||
if email_address
|
if email_address
|
||||||
|
print "\n"
|
||||||
send_email(email_address)
|
send_email(email_address)
|
||||||
print(": Sent\n")
|
|
||||||
else
|
else
|
||||||
failed("No email address specified")
|
failed("No email address specified")
|
||||||
end
|
end
|
||||||
|
@ -72,7 +72,8 @@ end
|
||||||
def send_email(email_address)
|
def send_email(email_address)
|
||||||
TestMailer.test_email(email_address).deliver
|
TestMailer.test_email(email_address).deliver
|
||||||
rescue => exc
|
rescue => exc
|
||||||
failed("Error sending test email - #{exc}")
|
print("Error sending test email - #{exc}\n")
|
||||||
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
def failed(msg)
|
def failed(msg)
|
||||||
|
|
Loading…
Reference in New Issue