Skip to content

Commit

Permalink
Make ingest more verbose (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed Jun 14, 2024
1 parent f7d5c23 commit bb83ea9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions podaac/swodlr_ingest_to_sds/submit_to_sds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bb83ea9

Please sign in to comment.