diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-05-07 16:17:25 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-05-13 20:02:41 +0000 |
commit | 6e33df0cc2e8e243fef6eb4486a03e84620d51d3 (patch) | |
tree | 743270422e3316ae641eed03e1ad3781df6d8f61 /sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap | |
parent | 07d1d8cd3f8f95ac40022916717481b43727ec03 (diff) | |
download | sonarqube-6e33df0cc2e8e243fef6eb4486a03e84620d51d3.tar.gz sonarqube-6e33df0cc2e8e243fef6eb4486a03e84620d51d3.zip |
Fix stacktrace in the Json output
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerLogbackEncoder.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerLogbackEncoder.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerLogbackEncoder.java index bbad390077a..f67b41bf40c 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerLogbackEncoder.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerLogbackEncoder.java @@ -24,6 +24,7 @@ import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.classic.spi.IThrowableProxy; import ch.qos.logback.core.CoreConstants; import ch.qos.logback.core.encoder.EncoderBase; +import java.util.List; import org.apache.commons.text.StringEscapeUtils; import static ch.qos.logback.core.CoreConstants.COMMA_CHAR; @@ -41,6 +42,11 @@ public class ScannerLogbackEncoder extends EncoderBase<ILoggingEvent> { private final ThrowableProxyConverter tpc = new ThrowableProxyConverter(); + public ScannerLogbackEncoder() { + tpc.setOptionList(List.of("full")); + tpc.start(); + } + @Override public byte[] headerBytes() { return EMPTY_BYTES; |