2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

scheduler: raise logging severity of errors

This commit is contained in:
Sebastien Bourdeauducq 2015-10-14 16:02:22 +08:00
parent c00bce3967
commit 9f04af63e6

View File

@ -228,9 +228,9 @@ class PrepareStage(TaskObject):
await run.build()
await run.prepare()
except:
logger.warning("got worker exception in prepare stage, "
"deleting RID %d",
run.rid, exc_info=True)
logger.error("got worker exception in prepare stage, "
"deleting RID %d",
run.rid, exc_info=True)
self.delete_cb(run.rid)
else:
run.status = RunStatus.prepare_done
@ -278,9 +278,9 @@ class RunStage(TaskObject):
run.status = RunStatus.running
completed = await run.run()
except:
logger.warning("got worker exception in run stage, "
"deleting RID %d",
run.rid, exc_info=True)
logger.error("got worker exception in run stage, "
"deleting RID %d",
run.rid, exc_info=True)
self.delete_cb(run.rid)
else:
if completed:
@ -316,9 +316,9 @@ class AnalyzeStage(TaskObject):
await run.analyze()
await run.write_results()
except:
logger.warning("got worker exception in analyze stage, "
"deleting RID %d",
run.rid, exc_info=True)
logger.error("got worker exception in analyze stage, "
"deleting RID %d",
run.rid, exc_info=True)
self.delete_cb(run.rid)
else:
self.delete_cb(run.rid)