lib/lines.rb in lines-0.1.23 vs lib/lines.rb in lines-0.1.24
- old
+ new
@@ -174,13 +174,10 @@
obj.delete(:app) # And again
level = extract_pri(obj)
str = dumper.dump(obj)
- # Escape printf formatting
- str.gsub!('%', '%%')
-
- syslog.log(level, str)
+ syslog.log(level, "%s", str)
end
protected
attr_reader :syslog