From bb83ea99d5ca78c1cc12f3737c04d5364ecf593a Mon Sep 17 00:00:00 2001 From: Josh Garde Date: Thu, 13 Jun 2024 18:33:58 -0700 Subject: [PATCH] Make ingest more verbose (#17) --- podaac/swodlr_ingest_to_sds/submit_to_sds.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/podaac/swodlr_ingest_to_sds/submit_to_sds.py b/podaac/swodlr_ingest_to_sds/submit_to_sds.py index 79c0284..0354b0c 100644 --- a/podaac/swodlr_ingest_to_sds/submit_to_sds.py +++ b/podaac/swodlr_ingest_to_sds/submit_to_sds.py @@ -78,7 +78,9 @@ def lambda_handler(event, _context): ) # Otello throws generic Exceptions except Exception: # pylint: disable=broad-exception-caught - logger.exception('Failed to ingest granule') + logger.exception( + 'Failed to ingest granule id: %s', granule['id'] + ) return {'jobs': jobs} @@ -107,7 +109,10 @@ def _ingest_granule(granule): ingest_job_type.set_input_params(job_params) job = ingest_job_type.submit_job(tag=tag) timestamp = datetime.now().isoformat() - logger.info('Submitted to sds: %s', granule['id']) + logger.info( + 'Submitted to sds - granule id: %s, job id: %s', + granule['id'], job.job_id + ) return { 'job_id': job.job_id,