forked from LBRYCommunity/lbry-sdk
Merge pull request #697 from lbryio/fix_log_exceptions
Fix log exceptions
This commit is contained in:
commit
ed23622521
3 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ at anytime.
|
|||
*
|
||||
|
||||
### Fixed
|
||||
*
|
||||
* Fixed some log messages throwing exceptions
|
||||
*
|
||||
|
||||
### Deprecated
|
||||
|
|
|
@ -83,7 +83,7 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def stop(self, err=None, change_status=True):
|
||||
log.debug('Stopping download for %s', short_hash(self.sd_hash))
|
||||
log.debug('Stopping download for stream %s', short_hash(self.stream_hash))
|
||||
# EncryptedFileSaver deletes metadata when it's stopped. We don't want that here.
|
||||
yield EncryptedFileDownloader.stop(self, err=err)
|
||||
if change_status is True:
|
||||
|
|
|
@ -1626,7 +1626,7 @@ class Daemon(AuthJSONRPCServer):
|
|||
del self.streams[lbry_file.claim_id]
|
||||
yield self.lbry_file_manager.delete_lbry_file(lbry_file,
|
||||
delete_file=delete_from_download_dir)
|
||||
log.info("Deleted %s (%s)", file_name, utils.short_hash(stream_hash))
|
||||
log.info("Deleted file: %s", file_name)
|
||||
result = True
|
||||
|
||||
response = yield self._render_response(result)
|
||||
|
|
Loading…
Reference in a new issue