From 3d216ba41f374bb5759976b516737e9a679e6e5d Mon Sep 17 00:00:00 2001 From: Zachary Chai Date: Fri, 21 Apr 2017 16:33:06 -0400 Subject: [PATCH] remove redundant logging --- lib/tasks/configuration.rake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/tasks/configuration.rake b/lib/tasks/configuration.rake index 4af119ca..18c52571 100644 --- a/lib/tasks/configuration.rake +++ b/lib/tasks/configuration.rake @@ -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)