Method: Exceptional::Remote.error
- Defined in:
- lib/exceptional/remote.rb
.error(exception_data) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/exceptional/remote.rb', line 16 def error(exception_data) uniqueness_hash = exception_data.uniqueness_hash hash_param = uniqueness_hash.nil? ? nil: "&hash=#{uniqueness_hash}" url = "/api/errors?api_key=#{::Exceptional::Config.api_key}&protocol_version=#{::Exceptional::PROTOCOL_VERSION}#{hash_param}" compressed = Zlib::Deflate.deflate(exception_data.to_json, Zlib::BEST_SPEED) call_remote(url, compressed) end |