Assign the exception to a variable to log it
This commit is contained in:
parent
7badcd633a
commit
e00365b225
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class BaseStorage(StoragePaths):
|
||||||
break
|
break
|
||||||
out_fp.write(buf)
|
out_fp.write(buf)
|
||||||
bytes_copied += len(buf)
|
bytes_copied += len(buf)
|
||||||
except IOError:
|
except IOError as err:
|
||||||
logger.error('Failed to stream_write_to_fp: %s', err)
|
logger.error('Failed to stream_write_to_fp: %s', err)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Reference in a new issue