This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new b0b55242 More debug
b0b55242 is described below

commit b0b552420c4409e19f242c79843c73348c7eea0b
Author: Sebb <[email protected]>
AuthorDate: Wed Jul 20 19:50:05 2022 +0100

    More debug
---
 tools/site-scan.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 09c1dd34..33828fc4 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -176,7 +176,7 @@ def exec_with_timeout(cmd, timeout)
     status = false
 
     pid = Process.spawn(*cmd, pgroup: true, :out => wout, :err => werr)
-    $stderr.puts "TEST: scanning: #{cmd[-1]} #{pid}"
+    $stderr.puts "TEST:  >> #{Time.now} scanning: #{cmd[-1]} #{pid}"
 
     Timeout.timeout(timeout) do
       Process.waitpid(pid)
@@ -192,8 +192,8 @@ def exec_with_timeout(cmd, timeout)
   rescue Timeout::Error
     # Try to determine why the kill does not tidy the chrome processes
     # Also whether a kill was actually issued!
-    puts "WARN: timeout scanning #{cmd[-1]}"
-    $stderr.puts "WARN: timeout scanning #{cmd[-1]}"
+    puts "WARN: timeout scanning #{cmd[-1]} #{pid}"
+    $stderr.puts "WARN:  #{Time.now} timeout scanning #{cmd[-1]} #{pid}"
     stderr = 'Timeout'
     # try using less drastic kill
     Process.kill(-2, pid) # INT
@@ -206,6 +206,7 @@ def exec_with_timeout(cmd, timeout)
     rout.close
     rerr.close
   end
+  $stderr.puts "TEST:  << #{Time.now} scanning: #{cmd[-1]} #{pid}"
   return stdout, stderr, status
 end
 

Reply via email to