[ https://issues.apache.org/jira/browse/DBCP-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dain Sundstrom closed DBCP-194. ------------------------------- Resolution: Fixed Fixed some time ago. > BasicDataSource.setLogWriter should not do createDataSource > ----------------------------------------------------------- > > Key: DBCP-194 > URL: https://issues.apache.org/jira/browse/DBCP-194 > Project: Commons Dbcp > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Kees de Kooter > Fix For: 1.3 > > 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. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]