Support new "irspy_data" log-level to register information written to
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Record.pm
index c5b6c1b..29160ec 100644 (file)
@@ -117,9 +117,10 @@ sub store_result {
         $xml .= " $key=\"" . xml_encode($info{$key}) . "\"";
     }
 
-    $xml .= ">" . isodate(time()) . "</irspy:$type>\n";
+    $xml .= ">" . isodate(time()) . "</irspy:$type>";
 
-    $this->append_entry('irspy:status', $xml);
+    $this->{irspy}->log("irspy_data", $xml);
+    $this->append_entry('irspy:status', $xml . "\n");
 }