Skip to content

Commit 37fae8c

Browse files
committed
better logs
1 parent 3301aeb commit 37fae8c

File tree

1 file changed

+6
-6
lines changed
  • packages/aws-library/src/aws_library/ec2

1 file changed

+6
-6
lines changed

packages/aws-library/src/aws_library/ec2/_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ async def launch_instances(
133133
with log_context(
134134
_logger,
135135
logging.INFO,
136-
msg=f"launching {number_of_instances} AWS instance(s) {instance_config.type.name} with {instance_config.tags=}",
136+
msg=f"launch {number_of_instances} AWS instance(s) {instance_config.type.name} with {instance_config.tags=}",
137137
):
138138
# first check the max amount is not already reached
139139
current_instances = await self.get_instances(
@@ -277,7 +277,7 @@ async def start_instances(
277277
with log_context(
278278
_logger,
279279
logging.INFO,
280-
msg=f"starting instances {instance_ids}",
280+
msg=f"start instances {instance_ids}",
281281
):
282282
await self.client.start_instances(InstanceIds=instance_ids)
283283
# wait for the instance to be in a pending state
@@ -310,7 +310,7 @@ async def stop_instances(self, instance_datas: Iterable[EC2InstanceData]) -> Non
310310
with log_context(
311311
_logger,
312312
logging.INFO,
313-
msg=f"stopping instances {[i.id for i in instance_datas]}",
313+
msg=f"stop instances {[i.id for i in instance_datas]}",
314314
):
315315
await self.client.stop_instances(InstanceIds=[i.id for i in instance_datas])
316316

@@ -321,7 +321,7 @@ async def terminate_instances(
321321
with log_context(
322322
_logger,
323323
logging.INFO,
324-
msg=f"terminating instances {[i.id for i in instance_datas]}",
324+
msg=f"terminate instances {[i.id for i in instance_datas]}",
325325
):
326326
await self.client.terminate_instances(
327327
InstanceIds=[i.id for i in instance_datas]
@@ -335,7 +335,7 @@ async def set_instances_tags(
335335
with log_context(
336336
_logger,
337337
logging.DEBUG,
338-
msg=f"setting {tags=} on instances '[{[i.id for i in instances]}]'",
338+
msg=f"set {tags=} on instances '[{[i.id for i in instances]}]'",
339339
):
340340
await self.client.create_tags(
341341
Resources=[i.id for i in instances],
@@ -357,7 +357,7 @@ async def remove_instances_tags(
357357
with log_context(
358358
_logger,
359359
logging.DEBUG,
360-
msg=f"removing {tag_keys=} of instances '[{[i.id for i in instances]}]'",
360+
msg=f"removal of {tag_keys=} from instances '[{[i.id for i in instances]}]'",
361361
):
362362
await self.client.delete_tags(
363363
Resources=[i.id for i in instances],

0 commit comments

Comments
 (0)