Sha256: dab33cf0aa32fdd97b857513eb561168fb156017d4da6244e72af900f23c6acd

Contents?: true

Size: 672 Bytes

Versions: 2

Compression:

Stored size: 672 Bytes

Contents

module Oboe
  module Loading

    def self.initialize_heroku
      # OBOE_TRACE_NEVER   0
      # OBOE_TRACE_ALWAYS  1
      # OBOE_TRACE_THROUGH 2
      
      if defined?(Oboe::Config)
        
        case Oboe::Config[:tracing_mode].to_s.downcase.to_sym
        when :never
          # OBOE_TRACE_NEVER
          Oboe::Context.setTracingMode(0)
        when :always
          # OBOE_TRACE_ALWAYS
          Oboe::Context.setTracingMode(1)
        else
          # OBOE_TRACE_ALWAYS
          Oboe::Context.setTracingMode(1)
        end
      else
        # OBOE_TRACE_ALWAYS
        Oboe::Context.setTracingMode(1)
      end
    end # self.initialize_heroku

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oboe-heroku-0.8.0.9 lib/oboe-heroku/loading.rb
oboe-heroku-0.8.0.1 lib/oboe-heroku/loading.rb