로그관리 API return 구조 수정

This commit is contained in:
2025-11-21 10:53:24 +09:00
parent f8001f2c58
commit d934f37488
6 changed files with 169 additions and 159 deletions

View File

@@ -266,10 +266,10 @@ public class GlobalExceptionHandler {
// TODO : 로그인 개발되면 이것도 연결해야 함
Long userid = Long.valueOf(Optional.ofNullable(ApiLogFunction.getUserId(request)).orElse("1"));
// TODO : stackTrace limit 10줄? 확인 필요
// TODO : stackTrace limit 20줄? 확인 필요
String stackTraceStr =
Arrays.stream(stackTrace)
.limit(10)
// .limit(20)
.map(StackTraceElement::toString)
.collect(Collectors.joining("\n"));