-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#550 [feat] DISCORD 제거 및 request Id 로깅
#550 [feat] DISCORD 제거 및 request Id 로깅
- Loading branch information
Showing
21 changed files
with
34 additions
and
855 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
module-api/src/main/java/com/mile/common/filter/MDCLoggingFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.mile.common.filter; | ||
|
||
|
||
import jakarta.servlet.Filter; | ||
import jakarta.servlet.FilterChain; | ||
import jakarta.servlet.ServletException; | ||
import jakarta.servlet.ServletRequest; | ||
import jakarta.servlet.ServletResponse; | ||
import org.slf4j.MDC; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.io.IOException; | ||
import java.util.UUID; | ||
|
||
@Component | ||
public class MDCLoggingFilter implements Filter { | ||
@Override | ||
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException { | ||
final String requestId = UUID.randomUUID().toString(); | ||
MDC.put("request_id", requestId); | ||
chain.doFilter(request, response); | ||
MDC.clear(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 0 additions & 114 deletions
114
module-api/src/main/java/com/mile/exception/log/discord/DiscordAppender.java
This file was deleted.
Oops, something went wrong.
150 changes: 0 additions & 150 deletions
150
module-api/src/main/java/com/mile/exception/log/discord/DiscordWebHook.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...api/src/main/java/com/mile/exception/log/discord/exception/ErrorLogAppenderException.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
module-api/src/main/java/com/mile/exception/log/discord/model/Author.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.