From 1be80fbec3f0efd18d07561c571259f91b0f2ec1 Mon Sep 17 00:00:00 2001 From: Yorick Date: Wed, 9 Dec 2015 11:21:40 +0100 Subject: [PATCH] Log in fuction execute for stdout; stderr --- export-video.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/export-video.py b/export-video.py index 2fb2c3d..aafcb07 100755 --- a/export-video.py +++ b/export-video.py @@ -61,6 +61,7 @@ def execute(command, shell=False): except OSError as ex: logging.error('Could not run command %s: %s', command, ex) return + logging.debug(stdout, stderr) return stdout.strip() @@ -240,9 +241,9 @@ if __name__ == "__main__": else: if os.path.isdir(params["file_output"]): params["file_input"] = os.path.join( - params["file_input"], - get_file_name(params["file_input"]) - ) + params["file_input"], + get_file_name(params["file_input"]) + ) logging.info('%s is a file', params["file_input"]) encode_h264(params["file_input"], params["file_output"]) else: