Skip to content

Commit

Permalink
adding debug statements, gateway still cant connect for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
rabellino-noaa committed Jun 27, 2024
1 parent 543fb0d commit c8bed03
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions python/idsse_testing/ims_service/src/ims_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@

@app.route('/all-events', methods=['GET'])
def profiles():
print('----DEBUG----')
print('Received GET request for all events, with headers:', request.headers)
print(' request.args.keys are:', request.args.keys())

logger.info('Received GET request for all events, with headers: %s', request.headers)
logger.info(' request.args.keys are: %s', request.args.keys())
print('DEBUG: request.headers.get("X-Api-Key") =', request.headers.get("X-Api-Key"))
print('DEBUG: app.config["GSL_KEY"] =', app.config['GSL_KEY'])
print('DEBUG: request.args.get("dataSource") =', request.args.get('dataSource'))

# logger doesn't get printed in the deployed version for some reason
# since mock-ims is a temporary service, I'm not going to spend time debugging this
# and will just use print statements instead
#logger.info('Received GET request for all events, with headers: %s', request.headers)
#logger.info(' request.args.keys are: %s', request.args.keys())

# First check for the key argument and that it matches the expected value...
if request.headers.get("X-Api-Key") != app.config['GSL_KEY']:
Expand Down

0 comments on commit c8bed03

Please sign in to comment.