From 1e2c147f7fd289fcdda5a9687bbc39a8f3bb2023 Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Mon, 5 Nov 2018 20:34:12 +0100 Subject: [PATCH] Less print() more logging. --- server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index 24bec3c..bb007c8 100644 --- a/server.py +++ b/server.py @@ -38,13 +38,12 @@ def convert(): input_path = os.path.join(job_dir, 'input.' + input_ext) input_file.save(input_path) - outputs = request.form['outputs'].split(',') results = [] for output in outputs: output_filename = '{0}.{1}'.format(input_base, output) output_path = os.path.join(job_dir, output_filename) - print('Converting {0} to {1}'.format(input_path, output_path)) + logger.info('Converting {0} to {1}'.format(input_path, output_path)) pypandoc.convert(input_path, output, outputfile=output_path) results.append({ 'input': input_path,