Commit 4201086d authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

More logging.

parent 4d1717c5
Pipeline #44354 failed with stages
in 25 minutes and 21 seconds
......@@ -148,6 +148,7 @@ class Upload(Base): # type: ignore
upload=coe_upload)
repo_db.add(coe_calc)
coe_calc.apply_calc_with_metadata(calc, context=context)
logger.info('added calculation, not yet committed', calc_id=coe_calc.calc_id)
# commit
if has_calcs:
......@@ -156,6 +157,7 @@ class Upload(Base): # type: ignore
result = coe_upload.coe_upload_id
else:
repo_db.rollback()
logger.info('added upload')
except Exception as e:
logger.error('Unexpected exception.', exc_info=e)
repo_db.rollback()
......
......@@ -396,6 +396,7 @@ class Upload(Proc):
processing state db.
"""
logger = self.get_logger()
logger.info('started to publish', step='publish')
with utils.lnr(logger, 'publish failed'):
upload_with_metadata = self.to_upload_with_metadata()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment