log cookie header

This commit is contained in:
Egor Aristov 2025-01-31 15:52:04 +03:00
parent f956d883bf
commit da66b8de73
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F
2 changed files with 1 additions and 1 deletions

View File

@ -59,6 +59,7 @@ func (m *CookieManager) UpdateCookies(key string, oldCookieHeader string, cookie
return nil
}
newCookieValue := cookiemgr.EncodeCookieHeader(cookies)
log.Debugf("Updating cookies: %s", newCookieValue)
oldCookies, err := cookiemgr.ParseCookieHeader(oldCookieHeader)
if err != nil {
return fmt.Errorf("parse cookie header: %w", err)

View File

@ -174,7 +174,6 @@ func (e *PwExtractor) visitPage(task models.Task, cb func(page playwright.Page)
for i, cook := range bCookies {
newCookies[i] = [2]string{cook.Name, cook.Value}
}
log.Debugf("Updating cookies: %v", newCookies)
err = e.cookieManager.UpdateCookies(task.URL, cookieStr, newCookies)
if err != nil {
log.Errorf("cookie manager update: %v", err)