lose some of the annoying uninitialised msgs
[spider.git] / perl / DXProt.pm
index 25d5501fef9a5342c647f8a42f2c51d0eca5ac90..4940c9102116050b86eae9604fafc732b34d849b 100644 (file)
@@ -1234,8 +1234,8 @@ sub spawn_cmd
                         sub {
                                 my $subpro = shift;
                                 if (isdbg('progress')) {
-                                        my $s = "line: $line";
-                                        $s .= ", args: " . join(', ', @$args) if $args && @$args;
+                                        my $s = qq{line: "$line"};
+                                        $s .= ", args: " . join(', ', map { defined $_ ? qq{'$_'} : q{'undef'} } @$args) if $args && @$args;
                                         dbg($s);
                                 }
                                 eval { @out = $cmdref->(@$args); };