diff --git a/lib/vedeu/output/compressor.rb b/lib/vedeu/output/compressor.rb index d99034078..0052de086 100644 --- a/lib/vedeu/output/compressor.rb +++ b/lib/vedeu/output/compressor.rb @@ -58,7 +58,7 @@ def content # @return [String] def compress - Vedeu.timer("Compression for #{content.size} characters".freeze) do + Vedeu.timer("Compression for #{content.size} objects".freeze) do out = '' content.each do |cell| @@ -68,6 +68,10 @@ def compress out << cell.value end + Vedeu.log(type: :output, + message: "Compression: #{content.size} objects -> " \ + "#{out.size} characters".freeze) + out end end @@ -80,6 +84,10 @@ def uncompress out << cell.to_s end + Vedeu.log(type: :output, + message: "No compression: #{content.size} objects -> " \ + "#{out.size} characters".freeze) + out end