SUPPORT-9182: add extra logs 3

This commit is contained in:
gulnaz 2025-05-30 15:30:20 +03:00
parent a9a5ac9a2f
commit c5ddacc405

View file

@ -184,12 +184,14 @@ public class EsiaAuthService {
public void authEsiaTokensByCode(String esiaAuthCode, String state, HttpServletResponse response, HttpServletRequest request) {
long startReqTime = System.currentTimeMillis();
long startSubReqTime;
long startSubReqTime = startReqTime;
String esiaAccessTokenStr = null;
String prnOid = null;
Long expiresIn = null;
long signSecret = 0, requestAccessToken = 0, verifySecret = 0;
verifyStateFromCookie(request, state, response);
LOGGER.info("Thread {} - Verify state from cookie: {} ms", Thread.currentThread().getId(), System.currentTimeMillis() - startSubReqTime);
try {
String clientId = esiaConfig.getClientId();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm:ss xx");