whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/1] Commit f499f45: Ignore Wunderbar info and debug log messages
Date Tue, 26 Jan 2016 00:40:56 GMT
Commit f499f4569936894caaf31c3c14de4ef6c9b3d6e1:
    Ignore Wunderbar info and debug log messages


Branch: refs/heads/master
Author: Sebb <sebb@apache.org>
Committer: Sebb <sebb@apache.org>
Pusher: sebb <sebb@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

Mime
View raw message