From f2ef7312a72241b4d1ad601b8ea3f42d9ad381cc Mon Sep 17 00:00:00 2001 From: Steve Rackham Date: Thu, 14 Dec 2023 17:24:50 +0000 Subject: [PATCH] Use logger --- vite_ruby/lib/vite_ruby/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite_ruby/lib/vite_ruby/runner.rb b/vite_ruby/lib/vite_ruby/runner.rb index c0dacff..fa06757 100644 --- a/vite_ruby/lib/vite_ruby/runner.rb +++ b/vite_ruby/lib/vite_ruby/runner.rb @@ -11,10 +11,10 @@ def run(argv, exec: false) config.within_root { cmd = command_for(argv) - puts "Running: #{ cmd.join(' ') }" return Kernel.exec(*cmd) if exec log_or_noop = ->(line) { logger.info('vite') { line } } unless config.hide_build_console_output + log_or_noop.call(cmd) ViteRuby::IO.capture(*cmd, chdir: config.root, with_output: log_or_noop) } rescue Errno::ENOENT => error