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

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


The following commit(s) were added to refs/heads/master by this push:
     new eee803ba New warning message
eee803ba is described below

commit eee803bad96697a3c435d075797b55c7f64f00b6
Author: Sebb <[email protected]>
AuthorDate: Sat Aug 19 21:23:50 2023 +0100

    New warning message
---
 www/status/monitors/site_scan.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/status/monitors/site_scan.rb b/www/status/monitors/site_scan.rb
index 373d3b48..e9dc7eae 100644
--- a/www/status/monitors/site_scan.rb
+++ b/www/status/monitors/site_scan.rb
@@ -34,7 +34,7 @@ def Monitor.site_scan(previous_status)
     file = File.basename(logfile)
     level = 'danger'
     # remove all non-fatal messages
-    level = 'warning' if log.gsub(/(.* error|WARN: timeout scanning.*)\n/, 
'').empty?
+    level = 'warning' if log.gsub(/(.* error|WARN: timeout scanning.*|Events: 
already have.*)\n/, '').empty?
     FileUtils.copy logfile, File.join(archive, file + '.' + level), preserve: 
true
     {
       level: level,

Reply via email to