From d821c853e59b8953fb37952248c123b738f0135c Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 9 Feb 2020 20:33:39 +0100 Subject: [PATCH] Better logging during tex and pdf generation --- survey/management/commands/exportresult.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/survey/management/commands/exportresult.py b/survey/management/commands/exportresult.py index 8398c599..40f668a7 100755 --- a/survey/management/commands/exportresult.py +++ b/survey/management/commands/exportresult.py @@ -56,8 +56,8 @@ def handle(self, *args, **options): if options["tex"] or options["pdf"]: configuration_file = options.get("configuration_file") if configuration_file is None: - msg = "No configuration file given, using default values." - LOGGER.warning(msg) + msg = "No configuration file given, using default values for '{}'.".format(survey) + LOGGER.info(msg) configuration = Configuration(configuration_file) exporters.append(Survey2Tex(survey, configuration)) for exporter in exporters: @@ -66,7 +66,7 @@ def handle(self, *args, **options): if options["pdf"] and isinstance(exporter, Survey2Tex): exporter.generate_pdf() else: - LOGGER.info( + LOGGER.warning( "\t- %s's %s were already generated use the --force (-f) option to generate anyway.", survey, exporter._get_x(),