From fb7f28b20fcd0543588ab72748cca55dc8f13641 Mon Sep 17 00:00:00 2001 From: Christoph Hannebauer Date: Mon, 19 Dec 2022 12:06:23 +0100 Subject: [PATCH] Improved debug output (#272) * Improved debug output * Improved debig output in JS file Change in JS file corresponding to the one in the TS file Co-authored-by: Balaga Gayatri --- lib/main.js | 2 +- src/main.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/main.js b/lib/main.js index 46931522..2643c2d2 100644 --- a/lib/main.js +++ b/lib/main.js @@ -67,7 +67,7 @@ function main() { core.exportVariable('AZURE_HTTP_USER_AGENT', userAgentString); core.exportVariable('AZUREPS_HOST_ENVIRONMENT', azurePSHostEnv); azPath = yield io.which("az", true); - core.debug(`az cli version used: ${azPath}`); + core.debug(`az cli path: ${azPath}`); let azureSupportedCloudName = new Set([ "azureusgovernment", "azurechinacloud", diff --git a/src/main.ts b/src/main.ts index adca4be8..7b29de1a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,7 @@ async function main() { core.exportVariable('AZUREPS_HOST_ENVIRONMENT', azurePSHostEnv); azPath = await io.which("az", true); - core.debug(`az cli version used: ${azPath}`); + core.debug(`az cli path: ${azPath}`); let azureSupportedCloudName = new Set([ "azureusgovernment", "azurechinacloud", @@ -236,4 +236,4 @@ async function jwtParser(federatedToken: string) { let decodedPayload = JSON.parse(bufferObj.toString("utf8")); return [decodedPayload['iss'], decodedPayload['sub']]; } -main(); \ No newline at end of file +main();