svn commit: r35154 - /dev/logging/log4j/
Author: rgoers Date: Wed Aug 7 05:26:58 2019 New Revision: 35154 Log: Release Log4j-2.12.1-rc1 Added: dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz (with props) dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.asc dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.sha512 dev/logging/log4j/apache-log4j-2.12.1-bin.zip (with props) dev/logging/log4j/apache-log4j-2.12.1-bin.zip.asc dev/logging/log4j/apache-log4j-2.12.1-bin.zip.sha512 dev/logging/log4j/apache-log4j-2.12.1-site.zip (with props) dev/logging/log4j/apache-log4j-2.12.1-site.zip.asc dev/logging/log4j/apache-log4j-2.12.1-site.zip.sha512 dev/logging/log4j/apache-log4j-2.12.1-src.tar.gz (with props) dev/logging/log4j/apache-log4j-2.12.1-src.tar.gz.asc dev/logging/log4j/apache-log4j-2.12.1-src.tar.gz.sha512 dev/logging/log4j/apache-log4j-2.12.1-src.zip (with props) dev/logging/log4j/apache-log4j-2.12.1-src.zip.asc dev/logging/log4j/apache-log4j-2.12.1-src.zip.sha512 Removed: dev/logging/log4j/apache-log4j-2.12.0-bin.tar.gz dev/logging/log4j/apache-log4j-2.12.0-bin.tar.gz.asc dev/logging/log4j/apache-log4j-2.12.0-bin.tar.gz.sha512 dev/logging/log4j/apache-log4j-2.12.0-bin.zip dev/logging/log4j/apache-log4j-2.12.0-bin.zip.asc dev/logging/log4j/apache-log4j-2.12.0-bin.zip.sha512 dev/logging/log4j/apache-log4j-2.12.0-site.zip dev/logging/log4j/apache-log4j-2.12.0-site.zip.asc dev/logging/log4j/apache-log4j-2.12.0-site.zip.sha512 dev/logging/log4j/apache-log4j-2.12.0-src.tar.gz dev/logging/log4j/apache-log4j-2.12.0-src.tar.gz.asc dev/logging/log4j/apache-log4j-2.12.0-src.tar.gz.sha512 dev/logging/log4j/apache-log4j-2.12.0-src.zip dev/logging/log4j/apache-log4j-2.12.0-src.zip.asc dev/logging/log4j/apache-log4j-2.12.0-src.zip.sha512 Added: dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz == Binary file - no diff available. Propchange: dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz -- svn:mime-type = application/octet-stream Added: dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.asc == --- dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.asc (added) +++ dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.asc Wed Aug 7 05:26:58 2019 @@ -0,0 +1,16 @@ +-BEGIN PGP SIGNATURE- + +iQIzBAABCgAdFiEEU8k1ghqmp1W9M321NZU5XrPY4boFAl1KSIYACgkQNZU5XrPY +4br/Mw//b1+X8nldmRsQ7fgFLtuZijUfgRpUxbfJ/3PyDqhJuScioMaVPLsmyFSv +Y5o16fY2Six8hxj91r1STSH4b64bdpuunHRODCB8206+Hah99qFJPgWdoQuUYcMO +I0rDg8Oab1SVHP5qwSgToB+P21VPDIS9lY6XK3tOWPLzOzsm452hgVlGsTDjtXRu +H9ScKkE+YE0U2BeQKpUGGDORZb7kI6lO93WtWmj/jCAreWqPCPdqNSDz/EjJAvQ7 +ixItY0sc4LQ/QyZ7Pt9NhCLtzAwzUWaPYjbwKTb2/H6Ec038b1avP8flzKldpyRL +RV66j4rM9R5w+lewRwmCUGNybqtiQsU8i15GZel24Hj+FqwzMCyCbPfG+jqIkjNp +wjNYBPyuHp2mUI6f7GKuDEURge3/b3WR5PvoKGlM2iustTnUQAQqDbjCOG2m8GZ7 +NdclSL4y/GgeNptwodjY3wrnb23yDBF/wACaH+bdx4W/Ugj3Estkqft23R4UlhBQ +PiFd1ClWCymI98qI1mjn4kr3Cmj3it2oMnaEnK6URij/7XTdheopycDIoVf5u5n/ +G8EYTmftPdFJYM0ZRNjD4J95RXelmUeJSYE+gpDRNPvrvNUGrfyHUVlxOAhARmpG +/dyjQbtrVKhAZylROyDkTG82LO/XLrdxY2nt43T1reIexRUEmcg= +=RBI7 +-END PGP SIGNATURE- Added: dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.sha512 == --- dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.sha512 (added) +++ dev/logging/log4j/apache-log4j-2.12.1-bin.tar.gz.sha512 Wed Aug 7 05:26:58 2019 @@ -0,0 +1,4 @@ +apache-log4j-2.12.1-bin.tar.gz: A5A7BC3D 8D84464E A114A869 CD7ACD61 F03665E8 +A632FA34 4DAB0C62 CCBDDC97 C38C8A4D B9F49843 +BD260B03 2DF636F1 21D8BF05 72E6222D 538B2A37 +F9C1CBDF Added: dev/logging/log4j/apache-log4j-2.12.1-bin.zip == Binary file - no diff available. Propchange: dev/logging/log4j/apache-log4j-2.12.1-bin.zip -- svn:mime-type = application/octet-stream Added: dev/logging/log4j/apache-log4j-2.12.1-bin.zip.asc == --- dev/logging/log4j/apache-log4j-2.12.1-bin.zip.asc (added) +++ dev/logging/log4j/apache-log4j-2.12.1-bin.zip.asc Wed Aug 7 05:26:58 2019 @@ -0,0 +1,16 @@ +-BEGIN PGP SIGNATURE- + +iQIzBAABCgAdFiEEU8k1ghqmp1W9M321NZU5XrPY4boFAl1KSIYACgkQNZU5XrPY +4bruMBAAtvvHggrXdqrYUqEbtjQfKQ78kXmoYLPceq4WVPcx0S1W7FyMG9KDKW7d +r8sbI3Bz55Te8O17Kxakx0G8RdrYm1SC0JoulFrgt9Q5vrp4uklcyxG0fXrxhECH +pSEJx5xnRrP4VV7Opjxq6b+ztfIuOMUVMpREoQ6AaiAWRIOaRcQ3hDQ6zax+2ZNb +8Dz7NEcRr6b3wDr2NLn4BtqtOSIw6gC/Juq3ouPm7Vo/LJ/HRI7uPE5KTPt1NmXw +5lnwNUtfoxhxRyt0/MLzWlo5MBrwaNEe9/dRMBap+h1KNkzyt/4D
[logging-log4j2] branch release-2.x updated: [maven-release-plugin] prepare for next development iteration
This is an automated email from the ASF dual-hosted git repository. rgoers pushed a commit to branch release-2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git The following commit(s) were added to refs/heads/release-2.x by this push: new 3604499 [maven-release-plugin] prepare for next development iteration 3604499 is described below commit 36044990e60e1a86af5d0c4e4019bedf1103cfd9 Author: rgoers AuthorDate: Tue Aug 6 20:42:27 2019 -0700 [maven-release-plugin] prepare for next development iteration --- log4j-1.2-api/pom.xml | 2 +- log4j-api-java9/pom.xml| 2 +- log4j-api/pom.xml | 2 +- log4j-appserver/pom.xml| 2 +- log4j-bom/pom.xml | 6 +- log4j-cassandra/pom.xml| 2 +- log4j-core-its/pom.xml | 2 +- log4j-core-java9/pom.xml | 2 +- log4j-core/pom.xml | 2 +- log4j-couchdb/pom.xml | 2 +- log4j-distribution/pom.xml | 2 +- log4j-docker/pom.xml | 2 +- log4j-flume-ng/pom.xml | 2 +- log4j-iostreams/pom.xml| 2 +- log4j-jcl/pom.xml | 2 +- log4j-jdbc-dbcp2/pom.xml | 2 +- log4j-jmx-gui/pom.xml | 2 +- log4j-jpa/pom.xml | 2 +- log4j-jul/pom.xml | 2 +- log4j-liquibase/pom.xml| 2 +- log4j-mongodb2/pom.xml | 2 +- log4j-mongodb3/pom.xml | 2 +- log4j-osgi/pom.xml | 2 +- log4j-perf/pom.xml | 4 ++-- log4j-samples/log4j-samples-configuration/pom.xml | 2 +- log4j-samples/log4j-samples-flume-common/pom.xml | 2 +- log4j-samples/log4j-samples-flume-embedded/pom.xml | 2 +- log4j-samples/log4j-samples-flume-remote/pom.xml | 2 +- log4j-samples/log4j-samples-loggerProperties/pom.xml | 2 +- log4j-samples/pom.xml | 2 +- log4j-slf4j-impl/pom.xml | 2 +- log4j-slf4j18-impl/pom.xml | 2 +- log4j-spring-cloud-config/log4j-spring-cloud-config-client/pom.xml | 2 +- .../log4j-spring-cloud-config-sample-application/pom.xml | 2 +- .../log4j-spring-cloud-config-sample-server/pom.xml| 7 +-- .../log4j-spring-cloud-config-samples/pom.xml | 2 +- log4j-spring-cloud-config/pom.xml | 2 +- log4j-taglib/pom.xml | 2 +- log4j-to-slf4j/pom.xml | 2 +- log4j-web/pom.xml | 2 +- pom.xml| 4 ++-- 41 files changed, 43 insertions(+), 52 deletions(-) diff --git a/log4j-1.2-api/pom.xml b/log4j-1.2-api/pom.xml index 88a54c0..e199296 100644 --- a/log4j-1.2-api/pom.xml +++ b/log4j-1.2-api/pom.xml @@ -20,7 +20,7 @@ org.apache.logging.log4j log4j -2.12.1 +2.13.0-SNAPSHOT ../ log4j-1.2-api diff --git a/log4j-api-java9/pom.xml b/log4j-api-java9/pom.xml index 46285c6..a4d6655 100644 --- a/log4j-api-java9/pom.xml +++ b/log4j-api-java9/pom.xml @@ -20,7 +20,7 @@ org.apache.logging.log4j log4j -2.12.1 +2.13.0-SNAPSHOT ../ log4j-api-java9 diff --git a/log4j-api/pom.xml b/log4j-api/pom.xml index 19efec5..5927cc8 100644 --- a/log4j-api/pom.xml +++ b/log4j-api/pom.xml @@ -20,7 +20,7 @@ org.apache.logging.log4j log4j -2.12.1 +2.13.0-SNAPSHOT ../ log4j-api diff --git a/log4j-appserver/pom.xml b/log4j-appserver/pom.xml index ef31b4c..7ec3cbf 100644 --- a/log4j-appserver/pom.xml +++ b/log4j-appserver/pom.xml @@ -20,7 +20,7 @@ log4j org.apache.logging.log4j -2.12.1 +2.13.0-SNAPSHOT 4.0.0 diff --git a/log4j-bom/pom.xml b/log4j-bom/pom.xml index a7002e6..525668a 100644 --- a/log4j-bom/pom.xml +++ b/log4j-bom/pom.xml @@ -26,7 +26,7 @@ Apache Log4j Bill of Materials org.apache.logging.log4j log4j-bom - 2.12.1 + 2.13.0-SNA
[logging-log4j2] branch release-2.x updated (7972089 -> ac121e2)
This is an automated email from the ASF dual-hosted git repository. rgoers pushed a change to branch release-2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git. from 7972089 [LOG4J2-2667] "Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0". new f5a332e Prepare for release new ac121e2 [maven-release-plugin] prepare release log4j-2.12.1-rc1 The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: log4j-1.2-api/pom.xml | 2 +- log4j-api-java9/pom.xml | 2 +- log4j-api/pom.xml | 2 +- log4j-appserver/pom.xml | 2 +- log4j-bom/pom.xml | 6 +- log4j-cassandra/pom.xml | 2 +- log4j-core-its/pom.xml| 2 +- log4j-core-java9/pom.xml | 2 +- log4j-core/pom.xml| 2 +- log4j-couchdb/pom.xml | 2 +- log4j-distribution/pom.xml| 2 +- log4j-docker/pom.xml | 2 +- log4j-flume-ng/pom.xml| 2 +- log4j-iostreams/pom.xml | 2 +- log4j-jcl/pom.xml | 2 +- log4j-jdbc-dbcp2/pom.xml | 2 +- log4j-jmx-gui/pom.xml | 2 +- log4j-jpa/pom.xml | 2 +- log4j-jul/pom.xml | 2 +- log4j-liquibase/pom.xml | 2 +- log4j-mongodb2/pom.xml| 2 +- log4j-mongodb3/pom.xml| 2 +- log4j-osgi/pom.xml| 2 +- log4j-perf/pom.xml| 4 ++-- log4j-samples/log4j-samples-configuration/pom.xml | 2 +- log4j-samples/log4j-samples-flume-common/pom.xml | 2 +- log4j-samples/log4j-samples-flume-embedded/pom.xml| 2 +- log4j-samples/log4j-samples-flume-remote/pom.xml | 2 +- log4j-samples/log4j-samples-loggerProperties/pom.xml | 2 +- log4j-samples/pom.xml | 2 +- log4j-slf4j-impl/pom.xml | 2 +- log4j-slf4j18-impl/pom.xml| 2 +- .../log4j-spring-cloud-config-client/pom.xml | 2 +- .../log4j-spring-cloud-config-sample-application/pom.xml | 2 +- .../log4j-spring-cloud-config-sample-server/pom.xml | 11 +++ .../log4j-spring-cloud-config-samples/pom.xml | 2 +- log4j-spring-cloud-config/pom.xml | 2 +- log4j-taglib/pom.xml | 2 +- log4j-to-slf4j/pom.xml| 2 +- log4j-web/pom.xml | 2 +- pom.xml | 4 ++-- src/changes/changes.xml | 2 +- 42 files changed, 54 insertions(+), 47 deletions(-)
[logging-log4j2] annotated tag log4j-2.12.1-rc1 created (now 52bacd6)
This is an automated email from the ASF dual-hosted git repository. rgoers pushed a change to annotated tag log4j-2.12.1-rc1 in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git. at 52bacd6 (tag) tagging ac121e22d763d6b5391fad9e39d5efbeb79ccfac (commit) replaces log4j-2.12.0-rc2 by rgoers on Tue Aug 6 20:42:21 2019 -0700 - Log - [maven-release-plugin] copy for tag log4j-2.12.1-rc1 --- No new revisions were added by this update.
[logging-log4j2] 02/02: [maven-release-plugin] prepare release log4j-2.12.1-rc1
This is an automated email from the ASF dual-hosted git repository. rgoers pushed a commit to branch release-2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git commit ac121e22d763d6b5391fad9e39d5efbeb79ccfac Author: rgoers AuthorDate: Tue Aug 6 20:42:02 2019 -0700 [maven-release-plugin] prepare release log4j-2.12.1-rc1 --- log4j-1.2-api/pom.xml | 2 +- log4j-api-java9/pom.xml | 2 +- log4j-api/pom.xml | 2 +- log4j-appserver/pom.xml | 2 +- log4j-bom/pom.xml | 6 +- log4j-cassandra/pom.xml | 2 +- log4j-core-its/pom.xml| 2 +- log4j-core-java9/pom.xml | 2 +- log4j-core/pom.xml| 2 +- log4j-couchdb/pom.xml | 2 +- log4j-distribution/pom.xml| 2 +- log4j-docker/pom.xml | 2 +- log4j-flume-ng/pom.xml| 2 +- log4j-iostreams/pom.xml | 2 +- log4j-jcl/pom.xml | 2 +- log4j-jdbc-dbcp2/pom.xml | 2 +- log4j-jmx-gui/pom.xml | 2 +- log4j-jpa/pom.xml | 2 +- log4j-jul/pom.xml | 2 +- log4j-liquibase/pom.xml | 2 +- log4j-mongodb2/pom.xml| 2 +- log4j-mongodb3/pom.xml| 2 +- log4j-osgi/pom.xml| 2 +- log4j-perf/pom.xml| 4 ++-- log4j-samples/log4j-samples-configuration/pom.xml | 2 +- log4j-samples/log4j-samples-flume-common/pom.xml | 2 +- log4j-samples/log4j-samples-flume-embedded/pom.xml| 2 +- log4j-samples/log4j-samples-flume-remote/pom.xml | 2 +- log4j-samples/log4j-samples-loggerProperties/pom.xml | 2 +- log4j-samples/pom.xml | 2 +- log4j-slf4j-impl/pom.xml | 2 +- log4j-slf4j18-impl/pom.xml| 2 +- .../log4j-spring-cloud-config-client/pom.xml | 2 +- .../log4j-spring-cloud-config-sample-application/pom.xml | 2 +- .../log4j-spring-cloud-config-sample-server/pom.xml | 11 +++ .../log4j-spring-cloud-config-samples/pom.xml | 2 +- log4j-spring-cloud-config/pom.xml | 2 +- log4j-taglib/pom.xml | 2 +- log4j-to-slf4j/pom.xml| 2 +- log4j-web/pom.xml | 2 +- pom.xml | 4 ++-- 41 files changed, 53 insertions(+), 46 deletions(-) diff --git a/log4j-1.2-api/pom.xml b/log4j-1.2-api/pom.xml index d42fe62..88a54c0 100644 --- a/log4j-1.2-api/pom.xml +++ b/log4j-1.2-api/pom.xml @@ -20,7 +20,7 @@ org.apache.logging.log4j log4j -2.12.1-SNAPSHOT +2.12.1 ../ log4j-1.2-api diff --git a/log4j-api-java9/pom.xml b/log4j-api-java9/pom.xml index 8eba438..46285c6 100644 --- a/log4j-api-java9/pom.xml +++ b/log4j-api-java9/pom.xml @@ -20,7 +20,7 @@ org.apache.logging.log4j log4j -2.12.1-SNAPSHOT +2.12.1 ../ log4j-api-java9 diff --git a/log4j-api/pom.xml b/log4j-api/pom.xml index 5e4f301..19efec5 100644 --- a/log4j-api/pom.xml +++ b/log4j-api/pom.xml @@ -20,7 +20,7 @@ org.apache.logging.log4j log4j -2.12.1-SNAPSHOT +2.12.1 ../ log4j-api diff --git a/log4j-appserver/pom.xml b/log4j-appserver/pom.xml index 3ae879c..ef31b4c 100644 --- a/log4j-appserver/pom.xml +++ b/log4j-appserver/pom.xml @@ -20,7 +20,7 @@ log4j org.apache.logging.log4j -2.12.1-SNAPSHOT +2.12.1 4.0.0 diff --git a/log4j-bom/pom.xml b/log4j-bom/pom.xml index 787ec27..a7002e6 100644 --- a/log4j-bom/pom.xml +++ b/log4j-bom/pom.xml @@ -26,7 +26,7 @@ Apache Log4j Bill of Materials org.apache.logging.log4j log4j-bom - 2.12.1-SNAPSHOT + 2.12.1 pom @@ -191,4 +191,8 @@ + + +log4j-2.12.1-rc1 + diff --git a/log4j-cassandra/pom.xml b/log4j-cassandra/pom.xml index 16e1875..154a534 100644 --- a/log4j-cassandra/pom.xml +++ b/log4j-cassandra/pom.xml @@ -20,7 +20,7 @@ org.apache.logging.log4j log4j -2.12.1-SNAPSHOT +2.12.1
[logging-log4j2] 01/02: Prepare for release
This is an automated email from the ASF dual-hosted git repository. rgoers pushed a commit to branch release-2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git commit f5a332eb5902f542eb44a2829bcb6b2942c02ad0 Author: rgoers AuthorDate: Tue Aug 6 20:26:36 2019 -0700 Prepare for release --- src/changes/changes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 46a341a..27a664f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -29,7 +29,7 @@ - "update" - Change - "remove" - Removed --> - + Allow file renames to work when files are missing from the sequence.
[logging-log4j2] branch master updated: [LOG4J2-2667] "Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0".
This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git The following commit(s) were added to refs/heads/master by this push: new 42a553e [LOG4J2-2667] "Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0". 42a553e is described below commit 42a553ed349bc0e237b0f251bb09f7859e520ee8 Author: Gary Gregory AuthorDate: Tue Aug 6 17:57:20 2019 -0400 [LOG4J2-2667] "Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0". --- .../org/apache/logging/log4j/jdbc/appender/JdbcDatabaseManager.java | 4 ++-- src/changes/changes.xml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/log4j-jdbc/src/main/java/org/apache/logging/log4j/jdbc/appender/JdbcDatabaseManager.java b/log4j-jdbc/src/main/java/org/apache/logging/log4j/jdbc/appender/JdbcDatabaseManager.java index 82eb79e..e2f2be5 100644 --- a/log4j-jdbc/src/main/java/org/apache/logging/log4j/jdbc/appender/JdbcDatabaseManager.java +++ b/log4j-jdbc/src/main/java/org/apache/logging/log4j/jdbc/appender/JdbcDatabaseManager.java @@ -478,7 +478,7 @@ public final class JdbcDatabaseManager extends AbstractDatabaseManager { final boolean closed = true; try { if (this.connection != null && !this.connection.isClosed()) { -if (this.isBatchSupported && this.statement != null) { +if (isBuffered() && this.isBatchSupported && this.statement != null) { logger().debug("Executing batch PreparedStatement {}", this.statement); int[] result; try { @@ -777,7 +777,7 @@ public final class JdbcDatabaseManager extends AbstractDatabaseManager { } } -if (this.isBatchSupported) { +if (isBuffered() && this.isBatchSupported) { this.statement.addBatch(); } else if (this.statement.executeUpdate() == 0) { throw new AppenderLoggingException( diff --git a/src/changes/changes.xml b/src/changes/changes.xml index e2823e4..5a295c1 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -176,6 +176,9 @@ Retry when JDBC throws a java.sql.SQLTransactionRollbackException in commitAndClose(). + +"Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0". +
[logging-log4j2] branch release-2.x updated: [LOG4J2-2667] "Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0".
This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch release-2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git The following commit(s) were added to refs/heads/release-2.x by this push: new 7972089 [LOG4J2-2667] "Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0". 7972089 is described below commit 7972089ad01a30568b2467581abac6f3cb70b769 Author: Gary Gregory AuthorDate: Tue Aug 6 17:53:59 2019 -0400 [LOG4J2-2667] "Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0". --- .../logging/log4j/core/appender/db/jdbc/JdbcDatabaseManager.java | 4 ++-- src/changes/changes.xml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/jdbc/JdbcDatabaseManager.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/jdbc/JdbcDatabaseManager.java index 9d3d870..1a279d0 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/jdbc/JdbcDatabaseManager.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/jdbc/JdbcDatabaseManager.java @@ -546,7 +546,7 @@ public final class JdbcDatabaseManager extends AbstractDatabaseManager { final boolean closed = true; try { if (this.connection != null && !this.connection.isClosed()) { -if (this.isBatchSupported && this.statement != null) { +if (isBuffered() && this.isBatchSupported && this.statement != null) { logger().debug("Executing batch PreparedStatement {}", this.statement); int[] result; try { @@ -849,7 +849,7 @@ public final class JdbcDatabaseManager extends AbstractDatabaseManager { } } -if (this.isBatchSupported) { +if (isBuffered() && this.isBatchSupported) { this.statement.addBatch(); } else if (this.statement.executeUpdate() == 0) { throw new AppenderLoggingException( diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 41d45a2..46a341a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -61,6 +61,9 @@ Retry when JDBC throws a java.sql.SQLTransactionRollbackException in commitAndClose(). + +"Values not bound to statement" when using JDBC appender, appender does not respect bufferSize="0". +