mirror of
https://github.com/corda/corda.git
synced 2025-03-01 04:16:21 +00:00
Merge pull request #542 from corda/ags_2018-03-12
Merge from OS 20180312
This commit is contained in:
commit
c2e89f007c
@ -70,5 +70,9 @@
|
|||||||
<Logger name="org.apache.activemq.artemis.core.server" level="error" additivity="false">
|
<Logger name="org.apache.activemq.artemis.core.server" level="error" additivity="false">
|
||||||
<AppenderRef ref="RollingFile-Appender"/>
|
<AppenderRef ref="RollingFile-Appender"/>
|
||||||
</Logger>
|
</Logger>
|
||||||
|
<Logger name="org.jolokia" additivity="true" level="warn">
|
||||||
|
<AppenderRef ref="Console-Appender-Println"/>
|
||||||
|
<AppenderRef ref="RollingFile-Appender" />
|
||||||
|
</Logger>
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
@ -20,7 +20,7 @@ stored states, transactions and attachments as follows:
|
|||||||
|
|
||||||
``Database connection URL is : jdbc:h2:tcp://10.18.0.150:56736/node``
|
``Database connection URL is : jdbc:h2:tcp://10.18.0.150:56736/node``
|
||||||
|
|
||||||
* Paste this string into the JDBC URL field and click ``Connect``, using the default username and password.
|
* Paste this string into the JDBC URL field and click ``Connect``, using the default username (``sa``) and no password.
|
||||||
|
|
||||||
You will be presented with a web interface that shows the contents of your node's storage and vault, and provides an
|
You will be presented with a web interface that shows the contents of your node's storage and vault, and provides an
|
||||||
interface for you to query them using SQL.
|
interface for you to query them using SQL.
|
||||||
|
@ -223,8 +223,8 @@ dependencies {
|
|||||||
throw new GradleException('Unsupported DB provider: ' + DB_PROVIDER)
|
throw new GradleException('Unsupported DB provider: ' + DB_PROVIDER)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Jolokia JVM monitoring agent
|
// Jolokia JVM monitoring agent, required to push logs through slf4j
|
||||||
runtime "org.jolokia:jolokia-jvm:${jolokia_version}:agent"
|
compile "org.jolokia:jolokia-jvm:${jolokia_version}:agent"
|
||||||
}
|
}
|
||||||
|
|
||||||
task integrationTest(type: Test) {
|
task integrationTest(type: Test) {
|
||||||
|
@ -78,7 +78,7 @@ class ArgsParser {
|
|||||||
val networkRootTrustStorePassword = optionSet.valueOf(networkRootTrustStorePasswordArg)
|
val networkRootTrustStorePassword = optionSet.valueOf(networkRootTrustStorePasswordArg)
|
||||||
|
|
||||||
val registrationConfig = if (isRegistration) {
|
val registrationConfig = if (isRegistration) {
|
||||||
requireNotNull(networkRootTrustStorePassword) { "Network root trust store password must be provided in registration mode." }
|
requireNotNull(networkRootTrustStorePassword) { "Network root trust store password must be provided in registration mode using --network-root-truststore-password." }
|
||||||
require(networkRootTrustStorePath.exists()) { "Network root trust store path: '$networkRootTrustStorePath' doesn't exist" }
|
require(networkRootTrustStorePath.exists()) { "Network root trust store path: '$networkRootTrustStorePath' doesn't exist" }
|
||||||
NodeRegistrationOption(networkRootTrustStorePath, networkRootTrustStorePassword)
|
NodeRegistrationOption(networkRootTrustStorePath, networkRootTrustStorePassword)
|
||||||
} else {
|
} else {
|
||||||
@ -119,7 +119,7 @@ data class CmdLineOptions(val baseDirectory: Path,
|
|||||||
mapOf("noLocalShell" to this.noLocalShell)
|
mapOf("noLocalShell" to this.noLocalShell)
|
||||||
)).parseAsNodeConfiguration()
|
)).parseAsNodeConfiguration()
|
||||||
if (nodeRegistrationConfig != null) {
|
if (nodeRegistrationConfig != null) {
|
||||||
requireNotNull(config.compatibilityZoneURL) { "Compatibility Zone Url must be provided in registration mode." }
|
requireNotNull(config.compatibilityZoneURL) { "Compatibility Zone URL (compatibilityZoneURL) must be present in node configuration file in registration mode." }
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
35
node/src/main/kotlin/net/corda/node/JolokiaSlf4jAdapter.kt
Normal file
35
node/src/main/kotlin/net/corda/node/JolokiaSlf4jAdapter.kt
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
package net.corda.node
|
||||||
|
|
||||||
|
import org.jolokia.util.LogHandler
|
||||||
|
import org.slf4j.Logger
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
|
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -35,5 +35,8 @@
|
|||||||
<Logger name="org.hibernate.SQL" level="info" additivity="false">
|
<Logger name="org.hibernate.SQL" level="info" additivity="false">
|
||||||
<AppenderRef ref="Console-Appender"/>
|
<AppenderRef ref="Console-Appender"/>
|
||||||
</Logger>
|
</Logger>
|
||||||
|
<Logger name="org.jolokia" additivity="true" level="warn">
|
||||||
|
<AppenderRef ref="Console-Appender-Println"/>
|
||||||
|
</Logger>
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user