From dd342fb40d8ab8ef00a998c93ec64a524bc0e7b7 Mon Sep 17 00:00:00 2001 From: Atharva Mulmuley Date: Thu, 29 Apr 2021 16:24:08 +0530 Subject: [PATCH] trying a fix for flow of logs --- lib/arc-login.js | 2 +- src/arc-login.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/arc-login.js b/lib/arc-login.js index fad5d424..26ba61c6 100644 --- a/lib/arc-login.js +++ b/lib/arc-login.js @@ -83,7 +83,7 @@ function getArcKubeconfig() { const kubeconfigPath = path.join(runnerTempDirectory, `kubeconfig_${Date.now()}`); let azPath = yield io.which("az", true); let out = fs.openSync('./out.log', 'a'); - let err = fs.openSync('./out.log', 'a'); + let err = fs.openSync('./err.log', 'a'); if (method == 'service-account') { let saToken = core.getInput('token'); if (!saToken) { diff --git a/src/arc-login.ts b/src/arc-login.ts index 6c1fca76..0613ad0c 100644 --- a/src/arc-login.ts +++ b/src/arc-login.ts @@ -79,7 +79,7 @@ export async function getArcKubeconfig(): Promise { const kubeconfigPath = path.join(runnerTempDirectory, `kubeconfig_${Date.now()}`); let azPath = await io.which("az", true); let out = fs.openSync('./out.log', 'a'); - let err = fs.openSync('./out.log', 'a'); + let err = fs.openSync('./err.log', 'a'); if (method == 'service-account'){ let saToken = core.getInput('token'); if(!saToken){