PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001416PacketFenceerror-handlingpublic2012-04-05 16:512015-02-13 15:42
Reporterobilodeau 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001416: try::tiny and log4perl
Descriptionwhen 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.
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Files

- Relationships

-  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
Powered by Mantis Bugtracker