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 46338fc1 Needed for CLI testing [skip ci]
46338fc1 is described below

commit 46338fc11004a5b2eb9be7b9fd01f6ad75e0799b
Author: Sebb <[email protected]>
AuthorDate: Tue Aug 27 11:26:47 2024 +0100

    Needed for CLI testing [skip ci]
---
 www/status/monitor.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/www/status/monitor.rb b/www/status/monitor.rb
index e48488f1..13dcf2fa 100644
--- a/www/status/monitor.rb
+++ b/www/status/monitor.rb
@@ -20,6 +20,12 @@ require 'json'
 require 'time'
 require 'thread'
 
+# for debugging purposes must include status
+if __FILE__ == $0
+  $LOAD_PATH.unshift '/srv/whimsy/lib'
+  require 'whimsy/asf/status'
+end
+
 class Monitor
   # match http://getbootstrap.com/components/#alerts
   LEVELS = %w(success info warning danger fatal)

Reply via email to