Skip to content

Commit 12db9e7

Browse files
committed
Add log message corresponding to specific errors
1 parent d2cb017 commit 12db9e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metasvc-server/src/main/java/io/github/dbmdz/metadata/server/controller/advice/ExceptionAdvice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public ResponseEntity<Problem> handleAllOther(Exception exception, ServletWebReq
110110
.withTimestamp(new Date())
111111
.build();
112112
if (problem.getStatus() == Status.INTERNAL_SERVER_ERROR)
113-
LOGGER.error("Exception stack trace", exception);
113+
LOGGER.error(cause.getMessage(), exception);
114114
return create(problem, request);
115115
}
116116
}

0 commit comments

Comments
 (0)