Skip to content

Commit

Permalink
Better logging during tex and pdf generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Feb 9, 2020
1 parent 80fbea4 commit d821c85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions survey/management/commands/exportresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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(),
Expand Down

0 comments on commit d821c85

Please sign in to comment.