Use new ZOOM::IRSpy::Web
[irspy-moved-to-github.git] / web / htdocs / details / check.mc
index bf550f9..500c85c 100644 (file)
@@ -1,20 +1,15 @@
-%# $Id: check.mc,v 1.4 2006-09-23 07:13:43 mike Exp $
+%# $Id: check.mc,v 1.5 2006-09-26 09:30:20 mike Exp $
 <%args>
 @id
 </%args>
 <%perl>
 my $allTargets = (@id == 1 && $id[0] eq "");
 print "<h2>Testing ...</h2>\n";
-my $spy = new ZOOM::IRSpy("localhost:3313/IR-Explain---1",
-                         admin => "fruitbat");
 print "     <ul>\n", join("", map { "      <li>$_\n" } @id), "</ul>\n"
     if !$allTargets;
 
-ZOOM::Log::mask_str("irspy,irspy_test"); # Do we need this?
-ZOOM::Log::init_level(ZOOM::Log::module_level("irspy,irspy_test"));
-ZOOM::Log::time_format("%F %T"); # ISO-8601 format
-### Arrange to capture logging output ... somehow.
-
+my $spy = new ZOOM::IRSpy::Web("localhost:3313/IR-Explain---1",
+                              admin => "fruitbat");
 $spy->targets(@id) if !$allTargets;
 $spy->initialise();
 my $res = $spy->check();