mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Make blobinspector not log to console by default (#4059)
This commit is contained in:
parent
825c544cac
commit
e3685f5e81
@ -52,14 +52,6 @@ class BlobInspector : CordaCliWrapper("blob-inspector", "Convert AMQP serialised
|
||||
|
||||
override fun runProgram() = run(System.out)
|
||||
|
||||
override fun initLogging() {
|
||||
if (verbose) {
|
||||
loggingLevel = Level.TRACE
|
||||
}
|
||||
val loggingLevel = loggingLevel.name.toLowerCase(Locale.ENGLISH)
|
||||
System.setProperty("logLevel", loggingLevel) // This property is referenced from the XML config file.
|
||||
}
|
||||
|
||||
fun run(out: PrintStream): Int {
|
||||
val inputBytes = source!!.readBytes()
|
||||
val bytes = parseToBinaryRelaxed(inputFormatType, inputBytes)
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="info">
|
||||
<Properties>
|
||||
<Property name="logLevel">off</Property>
|
||||
<Property name="consoleLogLevel">${sys:consoleLogLevel:-error}</Property>
|
||||
<Property name="defaultLogLevel">${sys:defaultLogLevel:-info}</Property>
|
||||
</Properties>
|
||||
<Appenders>
|
||||
<Console name="STDOUT" target="SYSTEM_OUT" ignoreExceptions="false">
|
||||
@ -9,7 +10,7 @@
|
||||
</Console>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Root level="${sys:logLevel}">
|
||||
<Root level="${sys:consoleLogLevel}">
|
||||
<AppenderRef ref="STDOUT"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
|
Loading…
Reference in New Issue
Block a user