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