commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kees de Kooter (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DBCP-194) BasicDataSource.setLogWriter should not do createDataSource
Date Tue, 28 Nov 2006 15:15:24 GMT
     [ http://issues.apache.org/jira/browse/DBCP-194?page=all ]

Kees de Kooter updated DBCP-194:
--------------------------------

    Attachment: AbandonedObjectPool.patch

Patched AbandonedObjectPool

> BasicDataSource.setLogWriter should not do createDataSource
> -----------------------------------------------------------
>
>                 Key: DBCP-194
>                 URL: http://issues.apache.org/jira/browse/DBCP-194
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Kees de Kooter
>         Attachments: AbandonedObjectPool.patch
>
>
> The code for setLogWriter is:
>     public void setLogWriter(PrintWriter logWriter) throws SQLException {
>         createDataSource().setLogWriter(logWriter);
>         this.logWriter = logWriter;
>     }
> This means that before a custom log writer is set a datasource is created. Any logging
happening while creating the datasource is directed to stdout / stderr.
> I think the purpose of setting a log writer is to prevent this, at least that is what
I am trying to achieve.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
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