add some more l ogging

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

6
dist/index.js vendored
View file

@ -4722,9 +4722,9 @@ function getAuthToken(authUrl, authUser, authPass) {
});
let response = yield httpClient.get(authUrl);
let body = yield response.readBody();
console.log(body);
core.info(body);
let data = JSON.parse(body);
console.log(JSON.stringify(data));
core.info(JSON.stringify(data));
return '';
});
}
@ -4740,7 +4740,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
if (scope) {
scope = scope.toLowerCase();
}
core.debug(`Setting auth in ${fileLocation}`);
core.info(`Setting auth in ${fileLocation}`);
let newContents = '';
if (fs.existsSync(fileLocation)) {
const curContents = fs.readFileSync(fileLocation, 'utf8');