From 5b8ce2c268f49ce67bc90267014b4e0f0b5eeb98 Mon Sep 17 00:00:00 2001 From: Joshua Garde Date: Tue, 19 Mar 2024 16:34:24 -0700 Subject: [PATCH] Make ingest more verbose --- 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 f135900..05e8eca 100644 --- a/podaac/swodlr_ingest_to_sds/submit_to_sds.py +++ b/podaac/swodlr_ingest_to_sds/submit_to_sds.py @@ -79,7 +79,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} @@ -108,7 +110,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,