projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow synonyms for localhost
[spider.git]
/
perl
/
DXDebug.pm
diff --git
a/perl/DXDebug.pm
b/perl/DXDebug.pm
index 9084062c0226020bd9c7aea2f32e2354b466ee48..c2e5f28f1adb81a009f087a067e26f1f0b22debb 100644
(file)
--- a/
perl/DXDebug.pm
+++ b/
perl/DXDebug.pm
@@
-104,7
+104,7
@@
sub dbgtrace
last if $pkg =~ /Mojo/;
# say "*** in dbgtrace $i after mojo";
$_isdbg = 'trace';
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 = '';
}
}
$_isdbg = '';
}
@@
-135,6
+135,7
@@
sub dbg
sub dbginit
{
sub dbginit
{
+ my $basename = shift || 'debug';
$callback = shift;
# add sig{__DIE__} handling
$callback = shift;
# add sig{__DIE__} handling
@@
-161,7
+162,7
@@
sub dbginit
}
}
}
}
- $fp = DXLog::new(
'debug'
, 'dat', 'd');
+ $fp = DXLog::new(
$basename
, 'dat', 'd');
dbgclearring();
}
dbgclearring();
}