logging improvements

pull/289/head
Frostebite 2021-08-15 18:35:27 +00:00 committed by GitHub
parent a5eb941886
commit 311dab0318
3 changed files with 5 additions and 3 deletions

3
dist/index.js vendored
View File

@ -1130,11 +1130,12 @@ class AWSBuildEnvironment {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
core.info(JSON.stringify(secrets, undefined, 4)); core.info(JSON.stringify(secrets, undefined, 4));
core.info(taskDefCloudFormation); core.info(taskDefCloudFormation);
core.error(error);
core.info('Getting events and resources for task stack');
const events = (yield CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents; const events = (yield CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents;
const resources = (yield CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources; const resources = (yield CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources;
core.info(JSON.stringify(events, undefined, 4)); core.info(JSON.stringify(events, undefined, 4));
core.info(JSON.stringify(resources, undefined, 4)); core.info(JSON.stringify(resources, undefined, 4));
core.error(error);
}); });
} }
readTaskCloudFormationTemplate() { readTaskCloudFormationTemplate() {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -316,11 +316,12 @@ class AWSBuildEnvironment implements RemoteBuilderProviderInterface {
) { ) {
core.info(JSON.stringify(secrets, undefined, 4)); core.info(JSON.stringify(secrets, undefined, 4));
core.info(taskDefCloudFormation); core.info(taskDefCloudFormation);
core.error(error);
core.info('Getting events and resources for task stack');
const events = (await CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents; const events = (await CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents;
const resources = (await CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources; const resources = (await CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources;
core.info(JSON.stringify(events, undefined, 4)); core.info(JSON.stringify(events, undefined, 4));
core.info(JSON.stringify(resources, undefined, 4)); core.info(JSON.stringify(resources, undefined, 4));
core.error(error);
} }
readTaskCloudFormationTemplate(): string { readTaskCloudFormationTemplate(): string {