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 2016/04/07 00:45:39 UTC
[whimsy] branch master updated: Just in case no previous data;
also need to check success
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 f159daf Just in case no previous data; also need to check success
f159daf is described below
commit f159daf43706679dae659024023d39a7bfbee171
Author: Sebb <se...@apache.org>
AuthorDate: Wed Apr 6 23:45:31 2016 +0100
Just in case no previous data; also need to check success
---
www/status/monitors/public_json.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/status/monitors/public_json.rb b/www/status/monitors/public_json.rb
index 35076c8..2401b95 100644
--- a/www/status/monitors/public_json.rb
+++ b/www/status/monitors/public_json.rb
@@ -83,9 +83,9 @@ def Monitor.public_json(previous_status)
end
# Has there been a change since the last check?
- if status[name] != previous_status[:data][name]
+ if previous_status[:data] and status[name] != previous_status[:data][name]
lvl = status[name][:level]
- if lvl and lvl != 'info' # was there a problem?
+ 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
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].