lib/loggly.rb in loggly-0.1.0 vs lib/loggly.rb in loggly-0.2.0
- old
+ new
@@ -8,11 +8,11 @@
class LogglyResque
@queue = :loggly
def self.perform(klass,message, time=nil)
- klass.send(:send_to_loggly, message, time)
+ Loggly.send_to_loggly(message, time)
end
end
#
# THIS CLASS AS AN ABSTRACT BASE CLASS TO SEND EVENTS TO LOGGLY.COM
@@ -76,12 +76,9 @@
rescue => e
puts e
puts "There was an error cueing loggly"
end
end
-
-
- private
# Private
# We use this method internally to send messages to loggly.
# It is used by the Resque worker and by the record method.
def self.send_to_loggly(message, time=nil)