File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
wrappercommon/src/main/java/com/genexus/diagnostics/core/provider Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,19 @@ private static boolean isJson(String str) {
341341
342342 private static List <String > getStackTraceAsList () {
343343 List <String > stackTraceLines = new ArrayList <>();
344- for (StackTraceElement ste : Thread .currentThread ().getStackTrace ()) {
344+ StackTraceElement [] stackTrace = Thread .currentThread ().getStackTrace ();
345+
346+ boolean skipping = true ;
347+ for (StackTraceElement ste : stackTrace ) {
348+ String className = ste .getClassName ();
349+
350+ // Skip lines from this package
351+ if (skipping && (className .startsWith ("com.genexus.diagnostics" ) ||
352+ className .startsWith ("java.lang.Thread" ))) {
353+ continue ;
354+ }
355+
356+ skipping = false ;
345357 stackTraceLines .add (ste .toString ());
346358 }
347359 return stackTraceLines ;
You can’t perform that action at this time.
0 commit comments