We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfcecca commit a874baeCopy full SHA for a874bae
backend/common/src/main/java/ai/verta/modeldb/common/CommonUtils.java
@@ -220,9 +220,9 @@ public static Throwable findRootCause(Throwable throwable) {
220
return rootCause;
221
}
222
223
- public static void printStackTrace(Logger logger, Exception e) {
224
- StackTraceElement[] stack = e.getStackTrace();
225
- logger.error("Stacktrace with {} elements for {}", stack.length, e);
+ public static void printStackTrace(Logger logger, Throwable t) {
+ StackTraceElement[] stack = t.getStackTrace();
+ logger.error("Stacktrace with {} elements for {}", stack.length, t);
226
int n = 0;
227
boolean isLongStack = stack.length > STACKTRACE_LENGTH;
228
if (isLongStack) {
0 commit comments