Skip to content

Commit 65002e8

Browse files
committed
#24 add more logging for search steps
1 parent 613b7f5 commit 65002e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

serverless/lib/PortalAuthenticator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ const PortalAuthenticator = {
456456
const sessionCookieJar = await StorageClient.getUserSession(userId);
457457

458458
if (sessionCookieJar) {
459+
console.log('Session cookie jar found in storage.');
459460
return {
460461
success: true,
461462
cookieJar: CookieJar.fromJSON(sessionCookieJar),
@@ -479,6 +480,7 @@ const PortalAuthenticator = {
479480
// Get user agent using the tiered strategy
480481
const resolvedUserAgent = await UserAgentClient.getUserAgent(userId, userAgent);
481482

483+
console.log(`Authenticating user ${userId} with portal using user agent ${resolvedUserAgent}.`);
482484
return await this.authenticateWithPortal(
483485
portalCredentials.username,
484486
portalCredentials.password,

0 commit comments

Comments
 (0)