Skip to content

Commit

Permalink
Quash logs stating "DBCP DataSource configured without a...", re #9
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Jan 8, 2025
1 parent 6a6fdc6 commit 0bd79ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/openjax/dbcp/BasicDataSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ protected DataSource createDataSource() throws SQLException {
return super.createDataSource();
}

@Override
protected void log(final String message) {
if (!message.startsWith("DBCP DataSource configured without a '"))
super.log(message);
}

@Override
public void setLogWriter(final PrintWriter logWriter) throws SQLException {
if (settingLogWriter.get())
Expand Down

0 comments on commit 0bd79ad

Please sign in to comment.