You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/01/26 01:40:56 UTC
[whimsy.git] [1/1] Commit f499f45: Ignore Wunderbar info and debug log messages
Commit f499f4569936894caaf31c3c14de4ef6c9b3d6e1:
Ignore Wunderbar info and debug log messages
Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@apache.org>
------------------------------------------------------------
www/status/monitors/public_json.rb | +++
------------------------------------------------------------
3 changes: 3 additions, 0 deletions.
------------------------------------------------------------
diff --git a/www/status/monitors/public_json.rb b/www/status/monitors/public_json.rb
index 61ecdad..c7ced83 100644
--- a/www/status/monitors/public_json.rb
+++ b/www/status/monitors/public_json.rb
@@ -19,6 +19,9 @@ def Monitor.public_json(previous_status)
contents.sub! /^git_info: .*\n+/, ''
+ # Ignore Wunderbar logging for normal messages (TODO ignore _WARN ?)
+ contents.sub! /^(_INFO|_DEBUG) .*\n+/, ''
+
if contents.sub! /^--- .*?\n(\n|\Z)/m, ''
status[name].merge! level: 'info', title: 'updated'
end