Log stream_write_to_fp ioerrors
This commit is contained in:
parent
0876fc754a
commit
76fd744453
2 changed files with 13 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
|||
import logging
|
||||
import tempfile
|
||||
|
||||
from digest.digest_tools import content_path
|
||||
from util.registry.filelike import READ_UNTIL_END
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class StoragePaths(object):
|
||||
shared_images = 'sharedimages'
|
||||
|
||||
|
@ -104,6 +107,7 @@ class BaseStorage(StoragePaths):
|
|||
out_fp.write(buf)
|
||||
bytes_copied += len(buf)
|
||||
except IOError:
|
||||
logger.error('Failed to stream_write_to_fp: %s', err)
|
||||
break
|
||||
|
||||
return bytes_copied
|
||||
|
|
Reference in a new issue