From 5952df82ffd42034bf698408352682801c28aa56 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 9 Aug 2022 15:05:03 -0500 Subject: [PATCH] Tweak flash msg, logging when batch population fails --- tailbone/views/batch/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index 84b2e77c..77da3344 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -1060,13 +1060,12 @@ class BatchMasterView(MasterView): session.flush() except Exception as error: session.rollback() - log.exception("batch population failed: %s", batch) + log.exception("population failed for batch %s: %s", batch.uuid, batch) session.close() if progress: progress.session.load() progress.session['error'] = True - progress.session['error_msg'] = "Batch population failed: {}".format( - simple_error(error)) + progress.session['error_msg'] = simple_error(error) progress.session.save() return