lib/oboe/api/logging.rb in oboe-1.3.4 vs lib/oboe/api/logging.rb in oboe-1.3.5

- old
+ new

@@ -80,14 +80,16 @@ xtrace = Oboe::Context.toString Oboe::Context.clear xtrace end - def log_entry(layer, opts={}) + def log_entry(layer, opts={}, protect_op=false) + Oboe::Context.layer_op = opts[:Op] if protect_op and opts.has_key?(:Op) log_event(layer, 'entry', Oboe::Context.createEvent, opts) end - def log_exit(layer, opts={}) + def log_exit(layer, opts={}, protect_op=false) + Oboe::Context.layer_op = nil if protect_op log_event(layer, 'exit', Oboe::Context.createEvent, opts) end # Internal: Report an event. #