mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
pass consoleLogLevel parameter to load test to enable log to console (#866)
This commit is contained in:
parent
20403d806a
commit
66421692a3
@ -25,8 +25,13 @@ run {
|
||||
if (project.hasProperty('loadtest-config')) {
|
||||
args project["loadtest-config"]
|
||||
}
|
||||
System.getProperties().forEach { k, v ->
|
||||
System.properties.forEach { k, v ->
|
||||
if (k.toString().startsWith("loadtest."))
|
||||
systemProperty k, v
|
||||
}
|
||||
if (System.properties.getProperty('consoleLogLevel') != null) {
|
||||
logging.captureStandardOutput(LogLevel.valueOf(System.properties.getProperty('consoleLogLevel')))
|
||||
logging.captureStandardError(LogLevel.valueOf(System.properties.getProperty('consoleLogLevel')))
|
||||
systemProperty "consoleLogLevel", System.properties.getProperty('consoleLogLevel')
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user