You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/05/22 00:07:45 UTC

[whimsy] branch master updated: Use stdout for general logs

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 6fa34af0 Use stdout for general logs
6fa34af0 is described below

commit 6fa34af0fd0e93d8d50f4460c1c7c60a56e31d15
Author: Sebb <se...@apache.org>
AuthorDate: Sun May 22 01:07:39 2022 +0100

    Use stdout for general logs
---
 tools/site-scan.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 3245f691..b5b3e4d8 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -15,6 +15,8 @@ require 'whimsy/cache'
 require 'whimsy/sitestandards'
 require_relative 'asf-site-check'
 
+$stdout.sync = true
+
 # Normalize spaces in text runs
 def squash(text)
   return text.scrub.gsub(/[[:space:]]+/, ' ').strip
@@ -62,7 +64,7 @@ def parse(id, site, name)
     data[:errors] = ioe.message
     return data
   end
-  $stderr.puts "#{id} #{uri} #{status}"
+  puts "#{id} #{uri} #{status}"
   # Bail and return if getting the site returns an error code
   if response.respond_to? :code and response.code =~ /^[45]/
     data[:errors] = "cache.get(#{site}) error code #{response.code}"