Skip to content

Commit 0d7cd75

Browse files
committed
chore: log token size in debug logs
1 parent f0fb217 commit 0d7cd75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ func (d *Dialer) metadataExchange(ctx context.Context, conn net.Conn, useIAMAuth
495495
if useIAMAuthN {
496496
authType = connectorspb.MetadataExchangeRequest_AUTO_IAM
497497
}
498-
d.logger.Debugf(ctx, "[%v] Metadata exchange start (token expiry = %v, auth type = %v)",
499-
inst, tok.Expiry.UTC().Format(time.RFC3339), authType)
498+
d.logger.Debugf(ctx, "[%v] Metadata exchange start (token expiry = %v, token size = %v, auth type = %v)",
499+
inst, tok.Expiry.UTC().Format(time.RFC3339), len(tok.Value), authType)
500500
req := &connectorspb.MetadataExchangeRequest{
501501
UserAgent: d.userAgent,
502502
AuthType: authType,

0 commit comments

Comments
 (0)