Anonymous | Login | 2024-11-22 23:44 EST |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||
0001416 | PacketFence | error-handling | public | 2012-04-05 16:51 | 2015-02-13 15:42 | |||
Reporter | obilodeau | |||||||
Assigned To | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||
Status | closed | Resolution | open | |||||
Platform | OS | OS Version | ||||||
Product Version | ||||||||
Target Version | Fixed in Version | |||||||
Summary | 0001416: try::tiny and log4perl | |||||||
Description | when using try { } catch { }; blocks you don't see the current sub when using log4perl. instead you get __ANON__ as in: (pf::SNMP::__ANON__). We should try to find a way around this. | |||||||
Tags | No tags attached. | |||||||
fixed in git revision | ||||||||
fixed in mtn revision | ||||||||
Attached Files | ||||||||
Notes | |
(0002637) obilodeau (reporter) 2012-04-07 10:57 |
I think I found a way: http://search.cpan.org/~mschilli/Log-Log4perl-1.36/lib/Log/Log4perl.pm#Using_Log::Log4perl_with_wrapper_functions_and_classes [^] |
(0002640) obilodeau (reporter) 2012-04-10 12:38 edited on: 2012-04-10 12:39 |
first solution (to call something like: Log::Log4perl->wrapper_register("Try::Tiny");) didn't work on centos5 because bundled Log4perl is too old to support it over there. packaged is 1.26 and feature introduced in 1.27 it seems :( https://metacpan.org/source/MSCHILLI/Log-Log4perl-1.36/Changes [^] |
(0002641) obilodeau (reporter) 2012-04-10 12:49 edited on: 2012-04-10 12:53 |
Poking the caller depth (local $Log::Log4perl::caller_depth = $Log::Log4perl::caller_depth + 1;) doesn't help either as all method called underneath no longer report the correct caller and I don't want to start intensively poking on caller_depth everywhere exception handling is used.. We'll probably have to submit a Log4perl version bump to the repoforge guys and then retry option 1. |
(0003836) lmunro (administrator) 2015-02-13 15:42 |
These bugs have been sitting untouched since 2012. Closing them and possibly reopening in github tracker where relevant. |
Issue History | |||
Date Modified | Username | Field | Change |
2012-04-05 16:51 | obilodeau | New Issue | |
2012-04-05 16:52 | obilodeau | Target Version | => +1 |
2012-04-07 10:57 | obilodeau | Note Added: 0002637 | |
2012-04-10 12:38 | obilodeau | Note Added: 0002640 | |
2012-04-10 12:39 | obilodeau | Note Edited: 0002640 | |
2012-04-10 12:49 | obilodeau | Note Added: 0002641 | |
2012-04-10 12:53 | obilodeau | Note Edited: 0002641 | |
2012-04-10 12:53 | obilodeau | Note Edited: 0002641 | |
2015-02-13 15:42 | lmunro | Note Added: 0003836 | |
2015-02-13 15:42 | lmunro | Status | new => closed |
Copyright © 2000 - 2012 MantisBT Group |