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

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

The following commit(s) were added to refs/heads/master by this push:
       new  d53d4d1   Log messages to show where we might send an email (better 
to flood log than mailbox!)
d53d4d1 is described below

commit d53d4d1826b0dbbf3e1b18a552baf54f44064ead
Author: Sebb <s...@apache.org>
AuthorDate: Thu Apr 7 00:17:30 2016 +0100

    Log messages to show where we might send an email (better to flood log
    than mailbox!)
---
 www/status/monitors/public_json.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/status/monitors/public_json.rb 
b/www/status/monitors/public_json.rb
index 2401b95..ba0d6c5 100644
--- a/www/status/monitors/public_json.rb
+++ b/www/status/monitors/public_json.rb
@@ -85,11 +85,13 @@ def Monitor.public_json(previous_status)
     # Has there been a change since the last check?
     if previous_status[:data] and status[name] != previous_status[:data][name]
       lvl = status[name][:level] 
+      $stderr.puts "Status has changed for #{name} #{lvl}"
       if lvl and lvl != 'info' and lvl != 'success' # was there a problem?
         # Save a copy of the log; append the severity so can track more 
problems
         name = File.basename(log)
         # temporarily allow the date stamp to be updated so we can see if the 
file is copied mulitple times
         FileUtils.copy log, File.join(archive, name + '.' + lvl) #, preserve: 
true
+        $stderr.puts "Would send e-mail for #{name} #{lvl}"
       end
     end
   end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Reply via email to