Skip to content

Commit

Permalink
Sonar: Rename logger to avoid conflict with super'
Browse files Browse the repository at this point in the history
  • Loading branch information
zechmeister committed Nov 5, 2024
1 parent ed90d5c commit cce4ec5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public class CallbackVerificationFilter extends OncePerRequestFilter {
private final SenderClient senderClient;
private final String callbackSecret;
private static final Logger logger = LoggerFactory.getLogger(CallbackVerificationFilter.class);
private static final Logger filterLogger = LoggerFactory.getLogger(CallbackVerificationFilter.class);

public CallbackVerificationFilter(
SenderClient senderClient, @Value("${fitConnect.callbackSecret}") String callbackSecret) {
Expand Down Expand Up @@ -49,7 +49,7 @@ protected void doFilterInternal(
hmac, Long.parseLong(request.getHeader("callback-timestamp")), body, callbackSecret);

if (!result.isValid()) {
logger.info(
filterLogger.info(
"Received invalid fit-connect callback. Validation Error: {}",
result.getError().getMessage());
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
Expand Down

0 comments on commit cce4ec5

Please sign in to comment.