Permalink
Browse files

Redirect chrome process stdout and stderr to /dev/null

  • Loading branch information...
1 parent 882133f commit 71b28cc6790c674118823f672efef75ee0378ec2 @plasticine plasticine committed Aug 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/chrome_debugger/client.rb
@@ -36,7 +36,8 @@ def self.open(&block)
def start_chrome
@profile_dir = File.join(Dir.tmpdir, SecureRandom.hex(10))
- @chrome_cmd = "'#{@chrome_path}' --user-data-dir=#{@profile_dir} -remote-debugging-port=#{REMOTE_DEBUGGING_PORT} --no-first-run"
+ @chrome_cmd = "#{@chrome_path} --user-data-dir=#{@profile_dir} -remote-debugging-port=#{REMOTE_DEBUGGING_PORT} --no-first-run > /dev/null 2>&1"
+ puts @chrome_cmd
@chrome_pid = Process.spawn(@chrome_cmd, :pgroup => true)
until debug_port_listening?

0 comments on commit 71b28cc

Please sign in to comment.