瀏覽代碼

add returncode to log

Hugo Quijada 6 年之前
父節點
當前提交
d7a5180478
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ondemand/service.py

+ 1 - 0
ondemand/service.py

@@ -442,6 +442,7 @@ def cloud_download(ad_key=None):
             tp = (out_file, md5sum,)
             p = Popen(['ffprobe', '-v', 'error', '-select_streams', 'a:0', '-show_entries', 'stream=codec_name', '-of', 'default=nokey=1:noprint_wrappers=1', out_file], stdin=PIPE, stdout=PIPE, stderr=PIPE)
             rc = p.returncode
+            log.info("[process_segment] file {} returncode= {}", (out_file, rc,))
             if rc != 'mp3\n':
                 log.info('[process_segment] file {} is not mp3'.format(out_file))
                 subprocess.call(['mv', out_file, out_file + '.old'])