add more info to log response

This commit is contained in:
Edward Romero 2020-06-23 20:22:06 -04:00
parent d0b49e1c14
commit be682f6c2b

View File

@ -36,9 +36,9 @@ async function getAuthToken(
}); });
let response: hc.HttpClientResponse = await httpClient.get(authUrl); let response: hc.HttpClientResponse = await httpClient.get(authUrl);
let body: string = await response.readBody(); let body: string = await response.readBody();
console.log(body); core.info(body);
let data: any = JSON.parse(body); let data: any = JSON.parse(body);
console.log(JSON.stringify(data)); core.info(JSON.stringify(data));
return ''; return '';
} }
@ -58,7 +58,7 @@ async function writeRegistryToFile(
scope = scope.toLowerCase(); scope = scope.toLowerCase();
} }
core.debug(`Setting auth in ${fileLocation}`); core.info(`Setting auth in ${fileLocation}`);
let newContents: string = ''; let newContents: string = '';
if (fs.existsSync(fileLocation)) { if (fs.existsSync(fileLocation)) {
const curContents: string = fs.readFileSync(fileLocation, 'utf8'); const curContents: string = fs.readFileSync(fileLocation, 'utf8');