From d4c5391540ddefa9ee783a1e42c47496cf07d4a8 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 17 Aug 2023 09:55:28 -0400 Subject: [PATCH] Extra debug logs --- packages/artifact/__tests__/ci-test-action/action.yml | 2 +- packages/artifact/src/internal/shared/artifact-twirp-client.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/artifact/__tests__/ci-test-action/action.yml b/packages/artifact/__tests__/ci-test-action/action.yml index 0a418ae9..4d954edd 100644 --- a/packages/artifact/__tests__/ci-test-action/action.yml +++ b/packages/artifact/__tests__/ci-test-action/action.yml @@ -1,5 +1,5 @@ name: 'Set env variables' description: 'Sets certain env variables so that e2e artifact upload, list, get and download can be tested in a shell' runs: - using: 'node12' + using: 'node16' main: 'index.js' \ No newline at end of file diff --git a/packages/artifact/src/internal/shared/artifact-twirp-client.ts b/packages/artifact/src/internal/shared/artifact-twirp-client.ts index a77d02a4..444e3fac 100644 --- a/packages/artifact/src/internal/shared/artifact-twirp-client.ts +++ b/packages/artifact/src/internal/shared/artifact-twirp-client.ts @@ -1,6 +1,6 @@ import {HttpClient, HttpClientResponse, HttpCodes} from '@actions/http-client' import {BearerCredentialHandler} from '@actions/http-client/lib/auth' -import {info} from '@actions/core' +import {info, debug} from '@actions/core' import {ArtifactServiceClientJSON} from '../../generated' import {getResultsServiceUrl, getRuntimeToken} from './config' @@ -53,6 +53,7 @@ class ArtifactHttpClient implements Rpc { data: object | Uint8Array ): Promise { const url = `${this.baseUrl}/twirp/${service}/${method}` + debug(`Requesting ${url}`) const headers = { 'Content-Type': contentType }