projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more bandaids
[spider.git]
/
perl
/
DXDebug.pm
diff --git
a/perl/DXDebug.pm
b/perl/DXDebug.pm
index f7598c151bb4db5a420ac654a4fea40b659ab47c..2cbdc2956e937b2e64fce2bf12354f271a37cdab 100644
(file)
--- a/
perl/DXDebug.pm
+++ b/
perl/DXDebug.pm
@@
-70,7
+70,15
@@
sub dbginit
{
# add sig{__DIE__} handling
if (!defined $DB::VERSION) {
{
# add sig{__DIE__} handling
if (!defined $DB::VERSION) {
- $SIG{__WARN__} = sub { dbgstore($@, Carp::shortmess(@_)); };
+ $SIG{__WARN__} = sub {
+ if ($_[0] =~ /Deep\s+recursion/i) {
+ dbgstore($@, Carp::longmess(@_));
+ CORE::die;
+ } else {
+ dbgstore($@, Carp::shortmess(@_));
+ }
+ };
+
$SIG{__DIE__} = sub { dbgstore($@, Carp::longmess(@_)); };
}
$SIG{__DIE__} = sub { dbgstore($@, Carp::longmess(@_)); };
}