Skip to content

Commit f6ad78e

Browse files
committed
CLAP-241 Refactor: 필요한 값만 추출하도록 수정
<footer> - 관련: #256
1 parent 88382b7 commit f6ad78e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/main/java/clap/server/application/port/inbound/domain/LogService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void createMemberLog(HttpServletRequest request, int statusCode, String c
3737

3838
public void createLoginFailedLog(HttpServletRequest request, int statusCode, String customCode, LogStatus logStatus, String requestBody, String nickName) throws JsonProcessingException {
3939
LoginLog loginLog = loadLoginLogPort.findByClientIp(ClientIpParseUtil.getClientIp(request)).orElse(null);
40-
String responseBody = loginLog != null ? loginLog.toString() : null;
40+
String responseBody = loginLog != null ? loginLog.toSummaryString() : null;
4141
AnonymousLog anonymousLog = AnonymousLog.createAnonymousLog(request, statusCode,customCode, logStatus, responseBody, requestBody, nickName);
4242
commandLogPort.saveAnonymousLog(anonymousLog);
4343
}

src/main/java/clap/server/domain/model/auth/LoginLog.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@ public void setLocked(boolean locked) {
4646
isLocked = locked;
4747
}
4848

49-
public String toString() {
49+
public String toSummaryString() {
5050
return "{" +
51-
"clientIp='" + clientIp + '\'' +
52-
", attemptNickname='" + attemptNickname + '\'' +
53-
", lastAttemptAt=" + lastAttemptAt +
5451
", failedCount=" + failedCount +
5552
", isLocked=" + isLocked +
5653
'}';

0 commit comments

Comments
 (0)