mirror of
https://github.com/corda/corda.git
synced 2025-02-21 01:42:24 +00:00
Fixing exception messages not showing up in the console because of log4j2.xml setup. (#3830)
This commit is contained in:
parent
41fc8d6c55
commit
f94abf726b
@ -132,7 +132,7 @@ open class NodeStartup(val args: Array<String>) {
|
||||
|
||||
private fun Exception.logAsExpected(message: String? = this.message, print: (String?) -> Unit = logger::error) = print("$message [errorCode=${errorCode()}]")
|
||||
|
||||
private fun Exception.logAsUnexpected(message: String? = this.message, error: Exception = this, print: (String?, Throwable) -> Unit = logger::error) = print("$message [errorCode=${errorCode()}]", error)
|
||||
private fun Exception.logAsUnexpected(message: String? = this.message, error: Exception = this, print: (String?, Throwable) -> Unit = logger::error) = print("$message${this.message?.let { ": $it" } ?: ""} [errorCode=${errorCode()}]", error)
|
||||
|
||||
private fun Exception.isOpenJdkKnownIssue() = message?.startsWith("Unknown named curve:") == true
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user