PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000874PacketFenceerror-handlingpublic2009-12-08 20:082011-01-26 15:42
Reporterobilodeau 
Assigned Toobilodeau 
PrioritynormalSeveritytweakReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version2.0.0Fixed in Version2.0.0 
Summary0000874: pfcmd_vlan should log at the same place as everyone else
Descriptionmaking wireless a lot harder to troubleshoot because deassociate traps leave no clue to what happened

solution: port bin/pfcmd_vlan to use conf/log.conf like everyone else!
TagsNo tags attached.
fixed in git revision
fixed in mtn revision6272b83016fe4f8264cbfdce928af5b55cd32b15
Attached Files

- Relationships
related to 0001130closed binaries should have an option to log on stdout 

-  Notes
(0001623)
obilodeau (reporter)
2010-08-04 09:57

Once the fix is committed open a new feature request to have the output duplicated to stdout if the -verbose flag is present (with log4perl levels):

       -verbose             log verbosity level
                              0 : fatal messages
                              1 : warn messages
                              2 : info messages
                              3 : debug
                              4 : trace


Or implement it right away if it's easy to do with log4perl and it sounds valuable.
(0001624)
obilodeau (reporter)
2010-08-04 09:58

patch from Josh:
--- pf2010/bin/pfcmd_vlan	2010/07/07 21:26:56	1
+++ pf2010/bin/pfcmd_vlan	2010/08/02 20:16:16	59
@@ -215,12 +215,13 @@
 } else {
     $logLevel = $TRACE;
 }
-Log::Log4perl->easy_init(
-    {   level  => $logLevel,
-        layout => '%d (%r) %M%n    %m %n'
-    }
-);
-my $logger = Log::Log4perl->get_logger('');
+#Log::Log4perl->easy_init(
+#    {   level  => $logLevel,
+#        layout => '%d (%r) %M%n    %m %n'
+#    }
+#);
+Log::Log4perl->init("/usr/local/pf/conf/log.conf");
+my $logger = Log::Log4perl->get_logger('pfcmd_vlan');

 my $switchFactory = new pf::SwitchFactory(
     -configFile => INSTALL_DIR . '/conf/switches.conf' );
(0001780)
obilodeau (reporter)
2010-11-26 11:26

pfcmd_vlan now logs to logs/packetfence.log and if -verbose flag is on, it'll log both to STDOUT and logs/packetfence.log

- Issue History
Date Modified Username Field Change
2009-12-08 20:08 obilodeau New Issue
2009-12-08 20:08 obilodeau Status new => assigned
2009-12-08 20:08 obilodeau Assigned To => obilodeau
2010-04-15 17:43 obilodeau Project PacketFence 1.9 => PacketFence
2010-08-04 09:57 obilodeau Note Added: 0001623
2010-08-04 09:57 obilodeau Target Version => 1.10.0
2010-08-04 09:58 obilodeau Note Added: 0001624
2010-11-19 14:25 obilodeau Target Version 1.10.0 => 2.0.0
2010-11-26 11:20 obilodeau Relationship added related to 0001130
2010-11-26 11:26 obilodeau mtn revision => 6272b83016fe4f8264cbfdce928af5b55cd32b15
2010-11-26 11:26 obilodeau Note Added: 0001780
2010-11-26 11:26 obilodeau Status assigned => resolved
2010-11-26 11:26 obilodeau Fixed in Version => trunk
2010-11-26 11:26 obilodeau Resolution open => fixed
2010-12-15 11:37 obilodeau Fixed in Version trunk => 2.0.0
2011-01-26 15:42 obilodeau Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker