Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-194

BasicDataSource.setLogWriter should not do createDataSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None

    Description

      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.

      Attachments

        1. AbandonedObjectPool.patch
          0.7 kB
          Kees de Kooter

        Activity

          People

            Unassigned Unassigned
            kdekooter Kees de Kooter
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: