lib/betterlog/log/event_formatter.rb in betterlog-0.12.0 vs lib/betterlog/log/event_formatter.rb in betterlog-0.12.1
- old
+ new
@@ -50,10 +50,11 @@
gsub('\t', "\t").
gsub(/\{(-)?(%[^%]+%)?([^}]+)\}/) {
invisible = $1.full?
directive = $2
key = $3
- if value = @event[key]
+ value = @event[key]
+ unless value.nil?
formatted_value =
if directive
case directive
when /\A%O%/
format_object(value)