Skip to content

Commit

Permalink
Feat: small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Nov 22, 2023
1 parent 4ba628b commit cacf24b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.numberone.backend.properties.NaverProperties;
import com.numberone.backend.domain.token.util.JwtUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.*;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -22,6 +23,7 @@
import java.util.Optional;

@Service
@Slf4j
@RequiredArgsConstructor
@Transactional(readOnly = true)
public class TokenService {
Expand Down Expand Up @@ -50,6 +52,8 @@ public GetTokenResponse loginKakao(GetTokenRequest tokenRequest) {
// }
return getTokenResponse(email);
} catch (Exception e) {
log.error("error: {}", e.getMessage());
e.printStackTrace();
throw new BadRequestSocialTokenException();
}
}
Expand Down

0 comments on commit cacf24b

Please sign in to comment.