lib/oboe/api/logging.rb in oboe-1.3.6 vs lib/oboe/api/logging.rb in oboe-1.3.7
- old
+ new
@@ -80,15 +80,15 @@
xtrace = Oboe::Context.toString
Oboe::Context.clear
xtrace
end
- def log_entry(layer, opts={}, protect_op=false)
- Oboe::Context.layer_op = opts[:Op] if protect_op and opts.has_key?(:Op)
+ def log_entry(layer, opts={}, protect_op=nil)
+ Oboe::Context.layer_op = protect_op if protect_op
log_event(layer, 'entry', Oboe::Context.createEvent, opts)
end
- def log_exit(layer, opts={}, protect_op=false)
+ def log_exit(layer, opts={}, protect_op=nil)
Oboe::Context.layer_op = nil if protect_op
log_event(layer, 'exit', Oboe::Context.createEvent, opts)
end
# Internal: Report an event.