Module: Wildsight::Context

Defined in:
lib/wildsight/context/logger.rb,
lib/wildsight/context/context.rb

Defined Under Namespace

Classes: Context, Logger

Class Method Summary collapse

Class Method Details

.detect(thread = Thread.current) ⇒ Object



4
5
6
# File 'lib/wildsight/context/context.rb', line 4

def self.detect(thread = Thread.current)
  thread.thread_variable_get('wildsight.context') || Wildsight::Agent.default.unknown_context
end