- my($conn, $irspy, $rs, $event, $ok) = @_;
-
- my $rec = $irspy->record($conn);
- $irspy->log("irspy_test", $conn->option("host"),
- ($ok ? "" : " not"), " connected");
- $rec->failed(1) if !$ok;
- ### At this point we should note the successful connection in $rec
- return 0;
+ my($conn, $task, $__UNUSED_udata, $event, $ok) = @_;
+
+ $conn->log("irspy_test", ($ok ? "" : "not "), "connected");
+ my $rec = $conn->record();
+ $rec->append_entry("irspy:status", "<irspy:probe ok='$ok'>" .
+ isodate(time()) . "</irspy:probe>");
+ $conn->option(pod_omit => 1) if !$ok;
+ return ZOOM::IRSpy::Status::TASK_DONE;