Skip to content

Commit f27737f

Browse files
committed
TEMP: debug
1 parent 176b2b7 commit f27737f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

server/aws-lsp-codewhisperer/src/shared/codeWhispererService.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,16 @@ export class CodeWhispererServiceToken extends CodeWhispererServiceBase {
382382

383383
this.#createSubscriptionTokenPromise = (async () => {
384384
try {
385-
return this.client.createSubscriptionToken(this.withProfileArn(request)).promise()
385+
const r = await this.client.createSubscriptionToken(this.withProfileArn(request)).promise()
386+
this.logging.error(`setpaidtier
387+
388+
request: ${JSON.stringify(request)}
389+
response: ${JSON.stringify(r as any)}
390+
requestId: ${(r as any).$response?.requestId}
391+
httpStatusCode: ${(r as any).$response?.httpResponse?.statusCode}
392+
headers: ${JSON.stringify((r as any).$response?.httpResponse?.headers)}
393+
`)
394+
return r
386395
} finally {
387396
this.#createSubscriptionTokenPromise = undefined
388397
}

0 commit comments

Comments
 (0)