Merge pull request #697 from lbryio/fix_log_exceptions

Fix log exceptions
This commit is contained in:
Jack Robison 2017-06-16 13:55:00 -04:00 committed by GitHub
commit ed23622521
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ at anytime.
* *
### Fixed ### Fixed
* * Fixed some log messages throwing exceptions
* *
### Deprecated ### Deprecated

View file

@ -83,7 +83,7 @@ class ManagedEncryptedFileDownloader(EncryptedFileSaver):
@defer.inlineCallbacks @defer.inlineCallbacks
def stop(self, err=None, change_status=True): 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. # EncryptedFileSaver deletes metadata when it's stopped. We don't want that here.
yield EncryptedFileDownloader.stop(self, err=err) yield EncryptedFileDownloader.stop(self, err=err)
if change_status is True: if change_status is True:

View file

@ -1626,7 +1626,7 @@ class Daemon(AuthJSONRPCServer):
del self.streams[lbry_file.claim_id] del self.streams[lbry_file.claim_id]
yield self.lbry_file_manager.delete_lbry_file(lbry_file, yield self.lbry_file_manager.delete_lbry_file(lbry_file,
delete_file=delete_from_download_dir) 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 result = True
response = yield self._render_response(result) response = yield self._render_response(result)