lib/eotb.rb in eotb-0.4.6 vs lib/eotb.rb in eotb-0.5.0
- old
+ new
@@ -23,11 +23,11 @@
begin
Timeout::timeout(2) {
Net::HTTP.new(@@uri.host, @@uri.port).start.request(@@post)
}
rescue => e
- puts "TIMEOUT"
- HoptoadNotifier.notify(e)
+ logger = Logger.new("log/#{ENV['RAILS_ENV']}.log")
+ logger.error "ERROR eotb gem: " + e\
end
end
def self.value_format(value)
value.send METHODS.find { |m| m if value.respond_to? m }