X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDebug.pm;h=f5c1640196d459251235cd328ebecf40396a6f07;hb=b8506d89844cb4c835e1964c09ca8692bee9c22d;hp=947923f2d4a4acb499f1d9b2fc5ef90a58809c08;hpb=63f0fc26e717837bc7c6990f27d26de91d65eb7e;p=spider.git diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index 947923f2..f5c16401 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -96,7 +96,8 @@ sub dbg($) for (@l) { s/([\x00-\x08\x0B-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg; print "$_\n" if defined \*STDOUT && !$no_stdout; - my $str = "$t^$_"; + my $tag = $_isdbg ? "($_isdbg) " : ''; + my $str = "$t^$tag$_"; &$callback($str) if $callback; if ($dbgringlth) { shift @dbgring while (@dbgring > $dbgringlth);