summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-06-08 05:00:01 +0300
committerDevaev Maxim <[email protected]>2020-06-08 05:00:01 +0300
commita81871adbe8d8a64d0125a266261edb6d793ff5c (patch)
treed3363b75602b50bac76806e4948f56f21a4c2ae7 /kvmd/apps
parentf3a9ae75f9b8dfbfd2117e5f55fb6379f5d31e61 (diff)
supressed snapshot spam
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/kvmd/snapshoter.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/apps/kvmd/snapshoter.py b/kvmd/apps/kvmd/snapshoter.py
index 69ef0dc0..82ae8815 100644
--- a/kvmd/apps/kvmd/snapshoter.py
+++ b/kvmd/apps/kvmd/snapshoter.py
@@ -92,7 +92,8 @@ class Snapshoter: # pylint: disable=too-many-instance-attributes
async def __take_snapshot(self, live: bool, notifier: aiotools.AioNotifier) -> None:
logger = get_logger(0)
- logger.info("Time to take the new snapshot (%s)", ("live" if live else "idle"))
+ if not live:
+ logger.info("Time to take the new idle snapshot")
try:
self.__snapshoting = True
await notifier.notify()
@@ -117,7 +118,8 @@ class Snapshoter: # pylint: disable=too-many-instance-attributes
while retries:
snapshot = await self.__streamer.take_snapshot(save=True, load=False, allow_offline=False)
if snapshot:
- logger.info("New snapshot saved: %dx%d", snapshot.width, snapshot.height)
+ if not live:
+ logger.info("New idle snapshot saved: %dx%d", snapshot.width, snapshot.height)
break
retries -= 1
await asyncio.sleep(self.__retries_delay)