lib/rackamole/mole.rb in rackamole-0.2.7 vs lib/rackamole/mole.rb in rackamole-0.2.8
- old
+ new
@@ -161,16 +161,16 @@
# Check for dups. If we've logged this req before don't log it again...
unless duplicated?( env, attrs )
# send email alert ?
if alertable?( :email, attrs[:type] )
logger.debug ">>> Sending out email on mole type #{attrs[:type]} to #{options[:email][:to].join( ", ")}"
- Rackamole::Alert::Emole.deliver_alert( logger, options[:email], attrs )
+ Rackamole::Alert::Emole.deliver_alert( logger, options, attrs )
end
# send twitter alert ?
if alertable?( :twitter, attrs[:type] )
logger.debug ">>> Sending out twitt on mole type #{attrs[:type]} on @#{options[:twitter][:username]}"
- Rackamole::Alert::Twitt.deliver_alert( logger, options[:twitter][:username], options[:twitter][:password], attrs )
+ Rackamole::Alert::Twitt.deliver_alert( logger, options, attrs )
end
end
rescue => boom
logger.error "!! MOLE RECORDING CRAPPED OUT !! -- #{boom}"
boom.backtrace.each { |l| logger.error l }
\ No newline at end of file