aws-samples / pcluster-manager

Manage AWS ParallelCluster through an easy to use web interface
https://pcluster.cloud
Apache License 2.0
65 stars 27 forks source link

Log frontend API calls for debugging purposes #405

Closed mtfranchetto closed 1 year ago

mtfranchetto commented 1 year ago

Description

Log every request and response made with the frontend to ease troubleshooting.

Changes

How Has This Been Tested?

Run the frontend locally and verified that /logs endpoint is called correctly

127.0.0.1 - - [12/Dec/2022 16:26:33] "GET /api?path=/v3/clusters HTTP/1.1" 200 -
2022-12-12 16:26:33,100 - INFO - {'url': 'api?path=/v3/clusters', 'statusCode': 200, 'source': 'frontend', 'message': 'HTTP response received'}

References

PR Quality Checklist

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.