add first take on IP address remembering
[spider.git] / perl / DXDebug.pm
index 947923f2d4a4acb499f1d9b2fc5ef90a58809c08..f5c1640196d459251235cd328ebecf40396a6f07 100644 (file)
@@ -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);