diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index fbfedf927..b8d506378 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -439,10 +439,13 @@ class Daemon(metaclass=JSONRPCServerType): await self.component_manager.stop() else: self.component_startup_task.cancel() + log.info("stopped api components") await self.runner.shutdown() await self.runner.cleanup() + log.info("stopped api server") if self.analytics_manager.is_started: self.analytics_manager.stop() + log.info("finished shutting down") async def handle_old_jsonrpc(self, request): data = await request.json() diff --git a/lbrynet/stream/managed_stream.py b/lbrynet/stream/managed_stream.py index b8e4f1eb9..2bb119b72 100644 --- a/lbrynet/stream/managed_stream.py +++ b/lbrynet/stream/managed_stream.py @@ -355,6 +355,8 @@ class ManagedStream: self.download_id, self.claim_name, self.sd_hash )) self.finished_writing.set() + log.info("finished saving file for lbry://%s#%s (sd hash %s...) -> %s", self.claim_name, self.claim_id, + self.sd_hash[:6]) except Exception as err: if os.path.isfile(output_path): log.warning("removing incomplete download %s for %s", output_path, self.sd_hash)