Update log4j (#3151)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/3152/head
Adrian Sutton 3 years ago committed by GitHub
parent 9147b67fad
commit 05e05aef3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGELOG.md
  2. 2
      build.gradle
  3. 8
      gradle/versions.gradle

@ -5,6 +5,9 @@
### Additions and Improvements ### Additions and Improvements
- Represent baseFee as Wei instead of long accordingly to the spec [#2785] (https://github.com/hyperledger/besu/issues/2785) - Represent baseFee as Wei instead of long accordingly to the spec [#2785] (https://github.com/hyperledger/besu/issues/2785)
### Bug Fixes
- Updated log4j to 2.15.0 and disabled JNDI message format lookups to improve security.
### <Next RC> Breaking Changes ### <Next RC> Breaking Changes
- Plugin API: BlockHeader.getBaseFee() method now returns an optional Wei instead of an optional Long - Plugin API: BlockHeader.getBaseFee() method now returns an optional Wei instead of an optional Long

@ -471,6 +471,8 @@ applicationDefaultJvmArgs = [
// We shutdown log4j ourselves, as otherwise this shutdown hook runs before our own and whatever // We shutdown log4j ourselves, as otherwise this shutdown hook runs before our own and whatever
// happens during shutdown is not logged. // happens during shutdown is not logged.
'-Dlog4j.shutdownHookEnabled=false', '-Dlog4j.shutdownHookEnabled=false',
// Disable JNI lookups in log4j messages to improve security
'-Dlog4j2.formatMsgNoLookups=true',
// Redirect java.util.logging loggers to use log4j2. // Redirect java.util.logging loggers to use log4j2.
'-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager', '-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager',
// Suppress Java JPMS warnings. Document the reason for each suppression. // Suppress Java JPMS warnings. Document the reason for each suppression.

@ -100,10 +100,10 @@ dependencyManagement {
dependency 'org.apache.commons:commons-compress:1.21' dependency 'org.apache.commons:commons-compress:1.21'
dependency 'org.apache.commons:commons-text:1.9' dependency 'org.apache.commons:commons-text:1.9'
dependency 'org.apache.logging.log4j:log4j-api:2.14.1' dependency 'org.apache.logging.log4j:log4j-api:2.15.0'
dependency 'org.apache.logging.log4j:log4j-core:2.14.1' dependency 'org.apache.logging.log4j:log4j-core:2.15.0'
dependency 'org.apache.logging.log4j:log4j-jul:2.14.1' dependency 'org.apache.logging.log4j:log4j-jul:2.15.0'
dependency 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1' dependency 'org.apache.logging.log4j:log4j-slf4j-impl:2.15.0'
dependency 'org.apache.tuweni:tuweni-bytes:2.0.0' dependency 'org.apache.tuweni:tuweni-bytes:2.0.0'
dependency 'org.apache.tuweni:tuweni-config:2.0.0' dependency 'org.apache.tuweni:tuweni-config:2.0.0'

Loading…
Cancel
Save