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 21:42:43 UTC
[whimsy] branch master updated: Docn;
ensure status does not needlessly chage
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 9d66874 Docn; ensure status does not needlessly chage
9d66874 is described below
commit 9d66874c906160292bfcea09f9abada091171ba2
Author: Sebb <se...@apache.org>
AuthorDate: Thu Apr 7 20:42:35 2016 +0100
Docn; ensure status does not needlessly chage
---
www/status/monitors/board_minutes.rb | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/www/status/monitors/board_minutes.rb b/www/status/monitors/board_minutes.rb
index 93eb743..0563e97 100644
--- a/www/status/monitors/board_minutes.rb
+++ b/www/status/monitors/board_minutes.rb
@@ -2,6 +2,20 @@
# Monitor status of board minutes
#
+=begin
+The code checks the collate_minutes log file and the file
+ www/board/minutes/index.html
+
+Possible status level responses:
+Danger - log contains an Exception message
+Info - Log contains some other content
+Success - Log is present, but empty
+Fatal - log or index are not present/readable (status level is generated by caller)
+
+=end
+
+require 'time'
+
def Monitor.board_minutes(previous_status)
index = File.expand_path('../../www/board/minutes/index.html')
log = File.read(File.expand_path('../../www/logs/collate_minutes'))
@@ -19,7 +33,7 @@ def Monitor.board_minutes(previous_status)
href: '../logs/collate_minutes'
}
else
- {mtime: File.mtime(index)}
+ {mtime: File.mtime(index).gmtime.iso8601, level: 'success'} # to agree with normalise
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].