stamina: don't log as exception player being properly cancelled
authorFrédéric Péters <fpeters@0d.be>
Sat, 18 Jul 2020 08:57:51 +0000 (10:57 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sat, 18 Jul 2020 08:57:51 +0000 (10:57 +0200)
nonstop/management/commands/stamina.py

index 39667ad..dd8e5e4 100644 (file)
@@ -434,8 +434,8 @@ class Command(BaseCommand):
                 try:
                     await self.play_task
                     self.recompute_slots()
-                except asyncio.CancelledError as exc:
-                    logger.exception('Main loop exception')
+                except asyncio.CancelledError:
+                    logger.debug('Player cancelled exception')
                     if self.player and self.player.returncode is None:  # not finished
                         self.player.kill()
                 except KeyboardInterrupt: