Sha256: bc65c9cad5fbb3ee2ea7a279e32190c41eff3e4b2b305a7ebb947665a643be95

Contents?: true

Size: 462 Bytes

Versions: 8

Compression:

Stored size: 462 Bytes

Contents

module Harness
  class SynchronousQueue
    def push(measurement)
      begin
        Harness::Job.new.log(measurement)
      rescue LoggingError => ex
        logger.debug "[Harness] Logging measurement failed! Server Said: #{ex}"
        logger.debug ex.backtrace.join("\n")
        logger.warn "[Harness] Could not post measurement! Enable debug logging to see full errors"
      end
    end

    private
    def logger
      Harness.logger
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/queues/synchronous_queue.rb
harness-0.9.0 lib/harness/queues/synchronous_queue.rb
harness-0.8.1 lib/harness/queues/synchronous_queue.rb
harness-0.8.0 lib/harness/queues/synchronous_queue.rb
harness-0.7.0 lib/harness/queues/synchronous_queue.rb
harness-0.6.0 lib/harness/queues/synchronous_queue.rb
harness-0.5.0 lib/harness/queues/synchronous_queue.rb
harness-0.4.0 lib/harness/queues/synchronous_queue.rb