Better task-level logging.
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Task / Retrieve.pm
index 05e0e8f..15877bc 100644 (file)
@@ -1,4 +1,3 @@
-# $Id: Retrieve.pm,v 1.5 2007-05-09 11:02:41 mike Exp $
 
 package ZOOM::IRSpy::Task::Retrieve;
 
@@ -32,7 +31,7 @@ sub new {
     $this->{rs} = $rs;
     $this->{index0} = $index0;
     # Save initial record-syntax for render()'s benefit
-    $this->{rs} = $this->{options}->{preferredRecordSyntax};
+    $this->{syntax} = $this->{options}->{preferredRecordSyntax};
 
     return $this;
 }
@@ -48,7 +47,8 @@ sub run {
     my $rs = $this->{rs};
     my $index0 = $this->{index0};
     $this->irspy()->log("irspy_task", $conn->option("host"),
-                       " retrieving record $index0 from $rs");
+                       " retrieving record $index0 from $rs, rs='",
+                       $rs->option("preferredRecordSyntax"), "'");
     $rs->records($index0, 1, 0); # requests record
     warn "no ZOOM-C level events queued by $this"
        if $conn->is_idle();
@@ -58,7 +58,7 @@ sub run {
 
 sub render {
     my $this = shift();
-    my $syntax = $this->{rs};
+    my $syntax = $this->{syntax};
     $syntax = defined $syntax ? "'$syntax'" : "undef";
     return ref($this) . "(" . $this->{index0} . ", $syntax)";
 }