Skip to content

Commit

Permalink
Merge pull request #291 from Team-BC-1/fix/fix-logging-level
Browse files Browse the repository at this point in the history
AccessToken 로깅과 로깅레벨 설정
  • Loading branch information
vanillacake369 authored Mar 16, 2024
2 parents 66539e4 + a6588bd commit 7107eb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/bc1/gream/global/jwt/JwtAuthFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
throws ServletException, IOException {

String accessToken = jwtUtil.getTokenWithoutBearer(request.getHeader(ACCESS_TOKEN_HEADER));
log.info("accessToken : {}", accessToken);
// accessToken 에 대한 로깅
// log.info("accessToken : {}", accessToken);

// access token 비어있으면 인증 미처리
if (!StringUtils.hasText(accessToken)) {
Expand Down
9 changes: 8 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,19 @@ spring:
host: ${REDIS_REPLICA_URL}
repositories:
enabled: false

# JWT
jwt:
secret:
key: ${JWT_SECRET_KEY}

# s3
# LOG
logging:
level:
bc1:
gream: warn

# S3
cloud:
aws:
s3:
Expand Down

0 comments on commit 7107eb9

Please sign in to comment.