X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDebug.pm;h=f249282e5b57e5d69399de8ece3cde3d5e1763f6;hb=56b93915d65c299a5f2d2e555ee361c056773843;hp=57a8237a45d48561349f45ebba5c30e9d3efb7f6;hpb=9c8f43f26a7db08c4ff6ef2213c95c9f509abe36;p=spider.git diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index 57a8237a..f249282e 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -69,12 +69,12 @@ if (!defined $DB::VERSION) { exit(-1); } sub carp { - DXDebug::dbgprintring(25) if DXDebug('nologchan'); + DXDebug::dbgprintring(5) if DXDebug::isdbg('nologchan'); # DXDebug::dbg(Carp::shortmess(\@_)); DXDebug::longmess(\@_); } sub cluck { - DXDebug::dbgprintring(25) if DXDebug('nologchan'); + DXDebug::dbgprintring(5) if DXDebug::isdbg('nologchan'); # DXDebug::dbg(Carp::longmess(\@_)); DXDebug::longmess(\@_); } ); @@ -104,7 +104,7 @@ sub dbgtrace last if $pkg =~ /Mojo/; # say "*** in dbgtrace $i after mojo"; $_isdbg = 'trace'; - dbg("Stack ($i): $pkg::$subr in $fn line: $l"); + dbg("Stack ($i): ${pkg}::$subr in $fn line: $l"); } $_isdbg = ''; }