mirror of
https://github.com/corda/corda.git
synced 2025-02-21 01:42:24 +00:00
DEVOPS-764 - Jolokia dependency is incorrectly specified and removed in master (#3380)
* DEVOPS-764 - Jolokia dependency is incorrectly specified and removed in master. * Backported more changes.
This commit is contained in:
parent
80c6c46d6f
commit
ac694e3023
@ -38,7 +38,6 @@ dependencies {
|
||||
compile "org.eclipse.jetty:jetty-servlet:$jetty_version"
|
||||
compile "org.eclipse.jetty:jetty-webapp:$jetty_version"
|
||||
compile "javax.servlet:javax.servlet-api:3.1.0"
|
||||
compile "org.jolokia:jolokia-war:$jolokia_version"
|
||||
compile "commons-fileupload:commons-fileupload:$fileupload_version"
|
||||
|
||||
// Log4J: logging framework (with SLF4J bindings)
|
||||
|
@ -1,40 +0,0 @@
|
||||
package net.corda.webserver
|
||||
|
||||
import org.jolokia.util.LogHandler
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
|
||||
/**
|
||||
* This also exists in node, because depends on jolokia
|
||||
**/
|
||||
class JolokiaSlf4Adapter : 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