Ver código fonte

delete the log because it causing an error

Hugo Quijada 6 anos atrás
pai
commit
a5e147dcad
1 arquivos alterados com 0 adições e 2 exclusões
  1. 0 2
      ondemand/service.py

+ 0 - 2
ondemand/service.py

@@ -442,9 +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'])
                 subprocess.call(['ffmpeg', '-hide_banner', '-loglevel', 'panic', '-i', out_file + '.old', '-f', 'mp3', out_file])
                 subprocess.call(['rm', '-rf', out_file + '.old'])