Skip to content

Commit e8ea65e

Browse files
committed
Refactor logging of slots list
1 parent 4ceb34f commit e8ea65e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/scheduler/cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ def build(
7777
resources = defn.resources()
7878
events, slots = events_and_slots(resources)
7979

80-
logger.debug('Slots List:')
81-
for idx, slot in enumerate(slots):
82-
logger.debug(f'{idx}: {slot.starts_at} {slot.venue}')
80+
slots_by_index = {
81+
idx: f'{slot.starts_at} {slot.venue}'
82+
for idx, slot in enumerate(slots)}
83+
logger.debug(f'\nSlots List:\n{slots_by_index}')
8384

8485
kwargs = {}
8586
if objective == 'consistency' or diff:

0 commit comments

Comments
 (0)