forked from LBRYCommunity/lbry-sdk
log blob count at startup
This commit is contained in:
parent
f4217d5593
commit
1a6290eacc
2 changed files with 3 additions and 2 deletions
|
@ -150,7 +150,7 @@ class BlobRequestHandler(object):
|
|||
if read_handle is not None:
|
||||
self.currently_uploading = blob
|
||||
self.read_handle = read_handle
|
||||
log.info("Sending %s to client", str(blob))
|
||||
log.info("Sending %s to %s", str(blob), self.peer)
|
||||
response_fields['blob_hash'] = blob.blob_hash
|
||||
response_fields['length'] = blob.length
|
||||
response['incoming_blob'] = response_fields
|
||||
|
|
|
@ -285,6 +285,7 @@ class Daemon(AuthJSONRPCServer):
|
|||
self.announced_startup = True
|
||||
self.startup_status = STARTUP_STAGES[5]
|
||||
log.info("Started lbrynet-daemon")
|
||||
log.info("%i blobs in manager", len(self.session.blob_manager.blobs))
|
||||
|
||||
if self.first_run:
|
||||
d = self._upload_log(log_type="first_run")
|
||||
|
@ -292,7 +293,7 @@ class Daemon(AuthJSONRPCServer):
|
|||
d = self._upload_log(exclude_previous=True, log_type="start")
|
||||
else:
|
||||
d = defer.succeed(None)
|
||||
|
||||
d.addCallback(lambda _: self.session.blob_manager.get_all_verified_blobs())
|
||||
d.addCallback(lambda _: _announce())
|
||||
return d
|
||||
|
||||
|
|
Loading…
Reference in a new issue