mirror of
https://github.com/corda/corda.git
synced 2025-02-22 10:10:59 +00:00
Webserver should not require Jolokia in any way
This commit is contained in:
parent
3b3614c13b
commit
5d91531ee0
@ -66,9 +66,6 @@ dependencies {
|
|||||||
// For rendering the index page.
|
// For rendering the index page.
|
||||||
compile "org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.3"
|
compile "org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.3"
|
||||||
|
|
||||||
// for Jolokia logger
|
|
||||||
compile "org.jolokia:jolokia-war:$jolokia_version"
|
|
||||||
|
|
||||||
integrationTestCompile project(':node-driver')
|
integrationTestCompile project(':node-driver')
|
||||||
testCompile "junit:junit:$junit_version"
|
testCompile "junit:junit:$junit_version"
|
||||||
}
|
}
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
package net.corda.webserver
|
|
||||||
|
|
||||||
import org.slf4j.Logger
|
|
||||||
import org.slf4j.LoggerFactory
|
|
||||||
import org.jolokia.util.LogHandler
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This also exists in node, because depends on jolokia
|
|
||||||
**/
|
|
||||||
class JolokiaSlf4jAdapter : LogHandler {
|
|
||||||
companion object {
|
|
||||||
val log: Logger = LoggerFactory.getLogger("org.jolokia")
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun error(message: String?, t: Throwable?) {
|
|
||||||
if (message != null) {
|
|
||||||
if (t != null) {
|
|
||||||
log.error(message, t)
|
|
||||||
} else {
|
|
||||||
log.error(message)
|
|
||||||
}
|
|
||||||
} else if (t != null) {
|
|
||||||
log.error("Exception without a comment", t)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun debug(message: String?) {
|
|
||||||
if (message != null) {
|
|
||||||
log.debug(message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun info(message: String?) {
|
|
||||||
if (message != null) {
|
|
||||||
log.info(message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user