Skip to content

Commit a874bae

Browse files
VUMM-244 get groups throwable (#2970)
1 parent dfcecca commit a874bae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/common/src/main/java/ai/verta/modeldb/common/CommonUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ public static Throwable findRootCause(Throwable throwable) {
220220
return rootCause;
221221
}
222222

223-
public static void printStackTrace(Logger logger, Exception e) {
224-
StackTraceElement[] stack = e.getStackTrace();
225-
logger.error("Stacktrace with {} elements for {}", stack.length, e);
223+
public static void printStackTrace(Logger logger, Throwable t) {
224+
StackTraceElement[] stack = t.getStackTrace();
225+
logger.error("Stacktrace with {} elements for {}", stack.length, t);
226226
int n = 0;
227227
boolean isLongStack = stack.length > STACKTRACE_LENGTH;
228228
if (isLongStack) {

0 commit comments

Comments
 (0)