Skip to content

Commit

Permalink
Merge pull request #73 from LCOGT/update/filter-query-logs
Browse files Browse the repository at this point in the history
final filtered image list debug message
  • Loading branch information
LTDakin authored Dec 4, 2023
2 parents 16276ed + 647d331 commit 817570f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ def filtered_images_query(db_address: str, query_filters: list):
session.expunge_all()
image_pkgs = [image.get_image_pkg() for image in images]
image_pkgs = filter_img_pkgs_final_sstack(image_pkgs)
# Debugging statement for cloudwatch logs
sstk_list = [(img_pkg["SMARTSTK"], img_pkg["SSTKNUM"]) for img_pkg in image_pkgs if img_pkg.get('SMARTSTK') is not None or img_pkg.get('SMARTSTK') != 'no']
print("DEBUG: filtered list of smart stacks ", sstk_list)
return image_pkgs

# Filter smart stacks to reduce the size of ui payload
Expand Down

0 comments on commit 817570f

Please sign in to comment.