Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: lightweight stack info # wrong question?by LanX (Saint) |
on Jun 12, 2014 at 01:35 UTC ( [id://1089629]=note: print w/replies, xml ) | Need Help?? |
After reading your question multiple times, I realize that you were (IMHO) asking the wrong question. What you really need is an approach to restrict your logging to uncaught fatal errors only. (the cost of serialization does not matter than!) I would maybe try to patch the module in question, such that eval { BLOCK } is replaced by something disabling the die-handler. (and if you are lucky this module already uses something like Try::Tiny and you can restrict your patch there :) prove of concept:
OUTPUT:
It's hard to believe that you are the first having this problem, curious to here about other solutions now that the question is clearer. Cheers Rolf (addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|