Debugging logs
This commit is contained in:
parent
86ba5c547e
commit
6113dff182
1 changed files with 3 additions and 0 deletions
|
@ -44,10 +44,12 @@ class PypoFile(Thread):
|
||||||
dst = media_item['dst']
|
dst = media_item['dst']
|
||||||
|
|
||||||
src_size = media_item['filesize']
|
src_size = media_item['filesize']
|
||||||
|
self.logger.info("--- src size: %s ---" % src_size)
|
||||||
|
|
||||||
dst_exists = True
|
dst_exists = True
|
||||||
try:
|
try:
|
||||||
dst_size = os.path.getsize(dst)
|
dst_size = os.path.getsize(dst)
|
||||||
|
self.logger.info("--- dst size: %s ---" % dst_size)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
dst_exists = False
|
dst_exists = False
|
||||||
|
|
||||||
|
@ -63,6 +65,7 @@ class PypoFile(Thread):
|
||||||
media_item['file_ready'] = not do_copy
|
media_item['file_ready'] = not do_copy
|
||||||
|
|
||||||
if do_copy:
|
if do_copy:
|
||||||
|
self.logger.info("----doing copy-----")
|
||||||
self.logger.debug("copying from %s to local cache %s" % (src, dst))
|
self.logger.debug("copying from %s to local cache %s" % (src, dst))
|
||||||
try:
|
try:
|
||||||
config = self.read_config_file(CONFIG_PATH)
|
config = self.read_config_file(CONFIG_PATH)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue