Skip to content

Commit adabc6d

Browse files
committed
log improve
1 parent b08edde commit adabc6d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sds_data_manager/lambda_code/SDSCode/api_lambdas/release_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def latest_ancillary_release(
236236
{models.AncillaryFiles.released: True},
237237
synchronize_session=False,
238238
)
239+
logger.info(f"Released {len(release_rows)} ancillary files")
239240
return release_rows
240241

241242

@@ -300,6 +301,7 @@ def latest_science_release(session, start_date, end_date, line):
300301
{models.ScienceFiles.released: True},
301302
synchronize_session=False,
302303
)
304+
logger.info(f"Released {len(release_rows)} science files")
303305
return release_rows
304306

305307

@@ -362,7 +364,7 @@ def release_type_handler(query_params):
362364
# If row is to exclude, skip release process.
363365
if not release_flag:
364366
continue
365-
367+
logger.info(f"Releasing files for line: {line}")
366368
if data_type == "all":
367369
# Release all data for given instrument for the date
368370
# range, including both ancillary and all data levels.
@@ -374,7 +376,6 @@ def release_type_handler(query_params):
374376
elif data_type == "ancillary":
375377
latest_ancillary_release(session, start_date, end_date, line)
376378
else:
377-
logger.info(f"Releasing science files for line: {line}")
378379
latest_science_release(
379380
session=session, start_date=start_date, end_date=end_date, line=line
380381
)

0 commit comments

Comments
 (0)