Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielram authored Nov 16, 2021
1 parent cc55281 commit b182131
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function cleanNullKeys(obj) {

function removeIgnoredAttributes(taskDef) {
for (var attribute of IGNORED_TASK_DEFINITION_ATTRIBUTES) {
core.debug(attribute)
if (taskDef[attribute]) {
core.warning(`Ignoring property '${attribute}' in the task definition file. ` +
'This property is returned by the Amazon ECS DescribeTaskDefinition API and may be shown in the ECS console, ' +
Expand Down Expand Up @@ -140,9 +141,9 @@ async function run() {
try {
registerResponse = await ecs.registerTaskDefinition(taskDefContents).promise();
} catch (error) {
core.setFailed("Failed to register task definition in ECS: " + error.message);
core.debug("Task definition contents:");
core.debug(JSON.stringify(taskDefContents, undefined, 4));
core.setFailed("Failed to register task definition in ECS: " + error.message);
throw(error);
}
const taskDefArn = registerResponse.taskDefinition.taskDefinitionArn;
Expand Down

0 comments on commit b182131

Please sign in to comment.