simplify some TaggedLogging methods
This commit is contained in:
parent
cead2dd1f4
commit
ffb0c5185c
|
@ -22,7 +22,7 @@ module ActiveSupport
|
||||||
tags.concat new_tags
|
tags.concat new_tags
|
||||||
yield
|
yield
|
||||||
ensure
|
ensure
|
||||||
new_tags.size.times { tags.pop }
|
tags.pop(new_tags.size)
|
||||||
end
|
end
|
||||||
|
|
||||||
def add(severity, message = nil, progname = nil, &block)
|
def add(severity, message = nil, progname = nil, &block)
|
||||||
|
@ -51,7 +51,7 @@ module ActiveSupport
|
||||||
def tags_text
|
def tags_text
|
||||||
tags = current_tags
|
tags = current_tags
|
||||||
if tags.any?
|
if tags.any?
|
||||||
tags.collect { |tag| "[#{tag}]" }.join(" ") + " "
|
tags.collect { |tag| "[#{tag}] " }.join
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue