commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
Date Wed, 09 Apr 2003 02:39:16 GMT
dgraham     2003/04/08 19:39:16

  Modified:    dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
  Log:
  Print messages to the configured printWriter instance instead of System.out.  PR# 17456.
  
  Revision  Changes    Path
  1.14      +8 -8      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java
  
  Index: BasicDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- BasicDataSource.java	9 Apr 2003 00:19:37 -0000	1.13
  +++ BasicDataSource.java	9 Apr 2003 02:39:16 -0000	1.14
  @@ -667,15 +667,15 @@
           if (username != null) {
               connectionProperties.put("user", username);
           } else {
  -            System.out.println(
  -                "DBCP DataSource configured without a 'username'");
  +            this.logWriter.println("DBCP DataSource configured without a 'username'");
           }
  +        
           if (password != null) {
               connectionProperties.put("password", password);
           } else {
  -            System.out.println(
  -                "DBCP DataSource configured without a 'password'");
  +            this.logWriter.println("DBCP DataSource configured without a 'password'");
           }
  +        
           DriverConnectionFactory driverConnectionFactory =
               new DriverConnectionFactory(driver, url, connectionProperties);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message