Created
May 19, 2011 12:10
-
-
Save solars/980603 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.subscribe(config.queue.name, :ack => 'client') do |msg| | |
begin | |
send_confirmation(data) | |
rescue Exception => e | |
subject = "[ReservationMailer #{config.templates.endpoint}] Error processing message: #{e.message}" | |
DaemonKit.logger.error subject | |
DaemonKit.logger.exception e | |
puts "sending email" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment