Closed mtfranchetto closed 1 year ago
Log every request and response made with the frontend to ease troubleshooting.
RemoteLogger
AppConfig
Run the frontend locally and verified that /logs endpoint is called correctly
/logs
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'}
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.
Description
Log every request and response made with the frontend to ease troubleshooting.
Changes
RemoteLogger
, removingAppConfig
from the constructor: there's no need to handle 401 and 403 errors inside log callsHow Has This Been Tested?
Run the frontend locally and verified that
/logs
endpoint is called correctlyReferences
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.