stamina: include nonstop zone name in playlist generation log
authorFrédéric Péters <fpeters@0d.be>
Mon, 20 Jul 2020 11:47:01 +0000 (13:47 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 20 Jul 2020 11:47:01 +0000 (13:47 +0200)
nonstop/management/commands/stamina.py

index 42c5df8..a740db2 100644 (file)
@@ -152,8 +152,8 @@ class Command(BaseCommand):
                 current_datetime = start_datetime + sum(
                         [x.duration for x in playlist], datetime.timedelta(seconds=0))
 
-        logger.info('Computed playlist: (computation time: %ss)',
-                (datetime.datetime.now() - t0))
+        logger.info('Computed playlist for "%s" (computation time: %ss)',
+                zone, (datetime.datetime.now() - t0))
         current_datetime = start_datetime
         for track in playlist:
             logger.debug('- track: %s %s %s', current_datetime, track.duration, track.title)