You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
346 B

  1. module SemanticLogger
  2. def self.fast_tag(tag)
  3. return yield if tag.nil? || tag == ''
  4. t = Thread.current[:semantic_logger_tags] ||= []
  5. begin
  6. t << tag
  7. yield
  8. # PVINCENT's addition
  9. rescue StandardError => e
  10. raise Semantic::TagWrapError.new(tag, e)
  11. # END OF addition
  12. ensure
  13. t.pop
  14. end
  15. end
  16. end