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:
|
if read_handle is not None:
|
||||||
self.currently_uploading = blob
|
self.currently_uploading = blob
|
||||||
self.read_handle = read_handle
|
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['blob_hash'] = blob.blob_hash
|
||||||
response_fields['length'] = blob.length
|
response_fields['length'] = blob.length
|
||||||
response['incoming_blob'] = response_fields
|
response['incoming_blob'] = response_fields
|
||||||
|
|
|
@ -285,6 +285,7 @@ class Daemon(AuthJSONRPCServer):
|
||||||
self.announced_startup = True
|
self.announced_startup = True
|
||||||
self.startup_status = STARTUP_STAGES[5]
|
self.startup_status = STARTUP_STAGES[5]
|
||||||
log.info("Started lbrynet-daemon")
|
log.info("Started lbrynet-daemon")
|
||||||
|
log.info("%i blobs in manager", len(self.session.blob_manager.blobs))
|
||||||
|
|
||||||
if self.first_run:
|
if self.first_run:
|
||||||
d = self._upload_log(log_type="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")
|
d = self._upload_log(exclude_previous=True, log_type="start")
|
||||||
else:
|
else:
|
||||||
d = defer.succeed(None)
|
d = defer.succeed(None)
|
||||||
|
d.addCallback(lambda _: self.session.blob_manager.get_all_verified_blobs())
|
||||||
d.addCallback(lambda _: _announce())
|
d.addCallback(lambda _: _announce())
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue