Skip to content

Commit ff26de2

Browse files
Write to logger instead of stderr directly
1 parent 39714d3 commit ff26de2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby_wasm/cli.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ def do_print_ruby_cache_key(packager)
173173

174174
def do_build(executor, tmpdir, packager, options)
175175
wasm_bytes = packager.package(executor, tmpdir, options)
176-
@stderr.puts "Size: #{SizeFormatter.format(wasm_bytes.size)}"
176+
RubyWasm.logger.info "Size: #{SizeFormatter.format(wasm_bytes.size)}"
177177
case options[:output]
178178
when "-"
179179
@stdout.write wasm_bytes.pack("C*")
180180
else
181181
File.binwrite(options[:output], wasm_bytes.pack("C*"))
182-
@stderr.puts "Wrote #{options[:output]}"
182+
RubyWasm.logger.debug "Wrote #{options[:output]}"
183183
end
184184
end
185185
end

0 commit comments

Comments
 (0)