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

SF.net SVN: ledger-smb:[4381] branches/1.3



Revision: 4381
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4381&view=rev
Author:   einhverfr
Date:     2012-03-06 01:00:18 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
Reducing errors printed to the logs by default when detecting version of db, and when log level set above warn.

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/Database.pm
    branches/1.3/UI/setup/credentials.html

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-03-05 07:21:29 UTC (rev 4380)
+++ branches/1.3/Changelog	2012-03-06 01:00:18 UTC (rev 4381)
@@ -2,6 +2,9 @@
 Initial Release:  Monday, Oct 12 2011
 Supported Presently
 
+Changelog for 1.3.13
+* Reduced log messages when upgrading/creating db, for some log levels (Chris T)
+
 Changelog for 1.3.12
 * Corrected processing of <?lsmb tags in order/invoice numbers (Chris T)
 * Corrected handling of accounts in dropdowns where () are present (Chris T)

Modified: branches/1.3/LedgerSMB/Database.pm
===================================================================
--- branches/1.3/LedgerSMB/Database.pm	2012-03-05 07:21:29 UTC (rev 4380)
+++ branches/1.3/LedgerSMB/Database.pm	2012-03-06 01:00:18 UTC (rev 4381)
@@ -28,6 +28,8 @@
 use LedgerSMB::Sysconfig;
 use base('LedgerSMB');
 use strict;
+Log::Log4perl::init(\$LedgerSMB::Sysconfig::log4perl_config);
+my $logger = Log::Log4perl->get_logger('');
 
 my $dbversions = {
     '1.2' => '1.2.0',
@@ -268,7 +270,8 @@
     my $creds = LedgerSMB::Auth->get_credentials();
     my $dbh = DBI->connect(
         "dbi:Pg:dbname=$self->{company_name}", 
-         "$creds->{login}", "$creds->{password}", { AutoCommit => 0 }
+         "$creds->{login}", "$creds->{password}", 
+         { AutoCommit => 0, PrintError => $logger->is_warn(), }
     );
     if (!$dbh){ # Could not connect, try to validate existance by connecting
                 # to template1 and checking

Modified: branches/1.3/UI/setup/credentials.html
===================================================================
--- branches/1.3/UI/setup/credentials.html	2012-03-05 07:21:29 UTC (rev 4380)
+++ branches/1.3/UI/setup/credentials.html	2012-03-06 01:00:18 UTC (rev 4381)
@@ -27,7 +27,7 @@
     type = 'password'
     size = '15'
    class = 'password'
-   label = text('Password') 
+   label = text('Password????') 
 } ?>
 </div>
 </div>

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