X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDebug.pm;fp=perl%2FDXDebug.pm;h=f5c1640196d459251235cd328ebecf40396a6f07;hb=c7a3cfda9336d765d387e9328f817d1f0e5230d1;hp=947923f2d4a4acb499f1d9b2fc5ef90a58809c08;hpb=2b89a309f1c5658fbadac1a5d3e5e03d541e1005;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);