X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=9d9f60b45e90b199fda5f5c4246d064d8ef1e412;hb=refs%2Fheads%2Fmulticonnect;hp=5d16f93d58594e0a467cf6933f662098e8ca5471;hpb=bbf04d560516aeaff4899aa89fdf03aed5a80379;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 5d16f93d..9d9f60b4 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -547,13 +547,13 @@ sub run_cmd my $t0 = [gettimeofday]; eval { @ans = &{"${package}::handle"}($self, $args) }; if ($@) { - dbgprintring(25); + DXDebug::dbgprintring(25); return (DXDebug::shortmess($@)); } if (isdbg('progress')) { my $msecs = _diffms($t0); my $s = "CMD: '$cmd $args' by $call ip: $self->{hostname} ${msecs}mS"; - dbg($s); + dbg($s) if $cmd !~ /^(?:echo|blank)/ || isdbg('echo'); # cut down a bit on HRD and other clients' noise } } else { dbg("cmd: $package not present") if isdbg('command'); @@ -1323,8 +1323,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); };