[svk-commit] r2999 - trunk/lib/SVK

nobody at bestpractical.com nobody at bestpractical.com
Thu Jul 17 17:39:24 EDT 2008


Author: alexmv
Date: Thu Jul 17 17:39:24 2008
New Revision: 2999

Modified:
   trunk/lib/SVK/Logger.pm

Log:
 * Don't clobber existing Log4perl configs

Modified: trunk/lib/SVK/Logger.pm
==============================================================================
--- trunk/lib/SVK/Logger.pm	(original)
+++ trunk/lib/SVK/Logger.pm	Thu Jul 17 17:39:24 2008
@@ -82,7 +82,7 @@
   };
 
     # ... passed as a reference to init()
-    Log::Log4perl::init( \$conf );
+    Log::Log4perl::init( \$conf ) unless Log::Log4perl->initialized;
     *get_logger = sub { Log::Log4perl->get_logger(@_) };
 }
 else {


More information about the svk-commit mailing list