Hi,
Most people would have some Java code to support JMeter test scripts.
How to print stack trace for the Java code when something went wrong?
I tried:
try {
// some code
} catch(Error e) {
log.error("Error: $e")
log.info("${org.codehaus.groovy.runtime.StackTraceUtils.sanitize(new
Exception(e)).printStackTrace()}")
}
base on
https://stackoverflow.com/questions/6259202/how-do-i-print-a-groovy-stack-trace
and also `e.printStackTrace()` from Java, but both print out just "null"
pls help. thx
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]