Skip to content

Instantly share code, notes, and snippets.

@solars
Created May 19, 2011 12:10
Show Gist options
  • Save solars/980603 to your computer and use it in GitHub Desktop.
Save solars/980603 to your computer and use it in GitHub Desktop.
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