mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
ENT-12507 - Revert Log4j (#7895)
* Rollback log4j * Revert Log4j further
This commit is contained in:
parent
40ce095398
commit
1c40e969f7
@ -34,7 +34,6 @@ fun Message.withErrorCodeFor(error: Throwable?, level: Level): Message {
|
|||||||
error != null && level.isInRange(Level.FATAL, Level.WARN) -> {
|
error != null && level.isInRange(Level.FATAL, Level.WARN) -> {
|
||||||
val logMessage = this.formattedMessage
|
val logMessage = this.formattedMessage
|
||||||
val message = error.walkExceptionCausedByList().asSequence().mapNotNull(Throwable::message).joinToString(" - ")
|
val message = error.walkExceptionCausedByList().asSequence().mapNotNull(Throwable::message).joinToString(" - ")
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
CompositeMessage("$logMessage - $message [errorCode=${error.errorCode()}, moreInformationAt=${error.errorCodeLocationUrl()}]", format, parameters, throwable)
|
CompositeMessage("$logMessage - $message [errorCode=${error.errorCode()}, moreInformationAt=${error.errorCodeLocationUrl()}]", format, parameters, throwable)
|
||||||
}
|
}
|
||||||
else -> this
|
else -> this
|
||||||
|
@ -31,7 +31,6 @@ class ExceptionsErrorCodeFunctionsTest {
|
|||||||
for (i in (0..10)) {
|
for (i in (0..10)) {
|
||||||
assertThat(message.formattedMessage, contains("$EXCEPTION_MESSAGE $i".toRegex()))
|
assertThat(message.formattedMessage, contains("$EXCEPTION_MESSAGE $i".toRegex()))
|
||||||
}
|
}
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
assertEquals(message.format, originalMessage.format)
|
assertEquals(message.format, originalMessage.format)
|
||||||
assertEquals(message.parameters, originalMessage.parameters)
|
assertEquals(message.parameters, originalMessage.parameters)
|
||||||
assertEquals(message.throwable, originalMessage.throwable)
|
assertEquals(message.throwable, originalMessage.throwable)
|
||||||
|
@ -51,7 +51,7 @@ jerseyVersion=3.1.6
|
|||||||
servletVersion=4.0.1
|
servletVersion=4.0.1
|
||||||
assertjVersion=3.12.2
|
assertjVersion=3.12.2
|
||||||
slf4JVersion=2.0.12
|
slf4JVersion=2.0.12
|
||||||
log4JVersion=2.24.2
|
log4JVersion=2.23.0
|
||||||
okhttpVersion=4.12.0
|
okhttpVersion=4.12.0
|
||||||
nettyVersion=4.1.115.Final
|
nettyVersion=4.1.115.Final
|
||||||
fileuploadVersion=2.0.0-M1
|
fileuploadVersion=2.0.0-M1
|
||||||
|
Loading…
Reference in New Issue
Block a user