Log error instead of warning, when batch population fails

user experience does not change but should help the admin to track
down the problem quicker..
This commit is contained in:
Lance Edgar 2022-03-11 12:37:43 -06:00
parent 7e15f75d44
commit 6037519fbe

View file

@ -1057,7 +1057,7 @@ class BatchMasterView(MasterView):
self.handler.do_populate(batch, user, progress=progress) self.handler.do_populate(batch, user, progress=progress)
except Exception as error: except Exception as error:
session.rollback() session.rollback()
log.warning("batch population failed: %s", batch, exc_info=True) log.exception("batch population failed: %s", batch)
session.close() session.close()
if progress: if progress:
progress.session.load() progress.session.load()