[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2874] trunk



Revision: 2874
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2874&view=rev
Author:   einhverfr
Date:     2010-02-09 19:08:37 +0000 (Tue, 09 Feb 2010)

Log Message:
-----------
reducing noise in run to reasonable level by default

Modified Paths:
--------------
    trunk/LedgerSMB/Sysconfig.pm
    trunk/ledgersmb.conf.default

Modified: trunk/LedgerSMB/Sysconfig.pm
===================================================================
--- trunk/LedgerSMB/Sysconfig.pm	2010-02-09 18:53:59 UTC (rev 2873)
+++ trunk/LedgerSMB/Sysconfig.pm	2010-02-09 19:08:37 UTC (rev 2874)
@@ -81,23 +81,16 @@
 $localepath = 'locale/po';
 
 $no_db_str = 'database';
-
+$log_level = 'ERROR';
 # available printers
 %printer;
 
-# Log4perl configuration
-$log4perl_config = q(
-    log4perl.rootlogger = DEBUG, Screen
-    log4perl.appender.Screen = Log::Log4perl::Appender::Screen
-    log4perl.appender.Screen.layout = SimpleLayout
-);
-
 my %config;
 read_config( 'ledgersmb.conf' => %config ) or die;
 
 # Root variables
 for $var (
-    qw(pathsep logging check_max_invoices language auth latex
+    qw(pathsep logging log4perl_level check_max_invoices language auth latex
     db_autoupdate force_username_case max_post_size decimal_places cookie_name
     return_accno no_db_str)
   )
@@ -152,6 +145,13 @@
 # These lines prevent other apps in mod_perl from seeing the global db
 # connection info
 
+# Log4perl configuration
+$log4perl_config = qq(
+    log4perl.rootlogger = $log_level, Screen
+    log4perl.appender.Screen = Log::Log4perl::Appender::Screen
+    log4perl.appender.Screen.layout = SimpleLayout
+);
+
 $ENV{PGHOST} = $config{database}{host};
 $ENV{PGPORT} = $config{database}{port};
 our $default_db = $config{database}{default_db};

Modified: trunk/ledgersmb.conf.default
===================================================================
--- trunk/ledgersmb.conf.default	2010-02-09 18:53:59 UTC (rev 2873)
+++ trunk/ledgersmb.conf.default	2010-02-09 19:08:37 UTC (rev 2874)
@@ -4,6 +4,7 @@
 # Set language for login and admin pages
 language : 
 
+log_level : ERROR;
 # For Windows, uncomment the pathsep line:
 # pathsep : ;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.