Skip to content

Commit cbe58c2

Browse files
authored
Unordered parallel build logs (#530)
* Add logical id for logging * Add functionality if function_name does not exist * Added case where build options does not exist * Use logical-build-id instead * Removed redundant syntax * Formatting Change
1 parent e7be1bd commit cbe58c2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

aws_lambda_builders/workflow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ def run(self):
362362

363363
for action in self.actions:
364364
action_info = "{}:{}".format(self.NAME, action.NAME)
365-
366-
LOG.info("Running %s", action_info)
365+
function_name = ""
366+
if self.options and "build_logical_id" in self.options:
367+
function_name = "{}:".format(self.options["build_logical_id"])
368+
LOG.info("%s Running %s", function_name, action_info)
367369

368370
try:
369371
action.execute()

aws_lambda_builders/workflows/custom_make/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def execute(self):
9292

9393
try:
9494
current_env = self.osutils.environ()
95-
LOG.info("Current Artifacts Directory : %s", self.artifact_dir_path)
95+
LOG.info("%s: Current Artifacts Directory : %s", self.build_logical_id, self.artifact_dir_path)
9696
current_env.update({"ARTIFACTS_DIR": self.artifact_dir_path})
9797
# Export environmental variables that might be needed by other binaries used
9898
# within the Makefile and also specify the makefile to be used as well.

0 commit comments

Comments
 (0)