Log in fuction execute for stdout; stderr
This commit is contained in:
parent
314fa316d2
commit
1be80fbec3
1 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue