Skip to content

Commit

Permalink
adding logging to service launch to see if profiles are loaded in con…
Browse files Browse the repository at this point in the history
…tainer
  • Loading branch information
rabellino-noaa committed Jun 27, 2024
1 parent 05010b9 commit f8fa932
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/idsse_testing/ims_service/src/ims_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def response():
for file in glob('*.json', root_dir=profile_dir)
]

print('Loading canned support profiles from:', json_files)
# json_files = sorted(glob('../profiles/*.json'))
for json_file in json_files:
with open(json_file, 'r', encoding="utf-8") as jf:
Expand All @@ -87,5 +88,7 @@ def response():
ims_request['profiles'].append(pro)
# ims_request = ims_request | {os.path.basename(json_file).strip('.json') : profile}

print('Loaded profiles:', ims_request)

# host=0.0.0.0 is required for flask to work properly in docker and k8s env
app.run(host='0.0.0.0', port=5000)

0 comments on commit f8fa932

Please sign in to comment.