Skip to content
Snippets Groups Projects
Commit 7f6c5261 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Change warning logs to errors

parent dad5ecee
No related branches found
No related tags found
1 merge request!943[Webservice] Create correction reports in MyMdC when jobs have finished
...@@ -343,11 +343,11 @@ class JobsMonitor: ...@@ -343,11 +343,11 @@ class JobsMonitor:
try: try:
report_path = args[args.index("--report-to") + 1] + ".pdf" report_path = args[args.index("--report-to") + 1] + ".pdf"
except (ValueError, IndexError): except (ValueError, IndexError):
log.warning("Couldn't find report path in %r", args) log.error("Couldn't find report path in %r", args)
return return
if not os.path.isfile(report_path): if not os.path.isfile(report_path):
log.warning("Jobs finished, but report file %s missing", report_path) log.error("Jobs finished, but report file %s missing", report_path)
return return
ts = datetime.fromtimestamp(os.stat(report_path).st_mtime, tz=timezone.utc) ts = datetime.fromtimestamp(os.stat(report_path).st_mtime, tz=timezone.utc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment