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

module SemanticLogger
def self.fast_tag(tag)
return yield if tag.nil? || tag == ''
t = Thread.current[:semantic_logger_tags] ||= []
begin
t << tag
yield
# PVINCENT's addition
rescue StandardError => e
raise Semantic::TagWrapError.new(tag, e)
# END OF addition
ensure
t.pop
end
end
end