Skip to content

Conversation

@MarcelRobitaille
Copy link
Collaborator

This was requested in #1257

This basically adds an interceptor to axios that logs every network request, which could be useful for debugging. It also checks the content-type of each request, and warns if it's not application/json or text/json.

Signed-off-by: Marcel Robitaille <[email protected]>
Signed-off-by: Marcel Robitaille <[email protected]>
Signed-off-by: Marcel Robitaille <[email protected]>
@github-actions
Copy link

Test Results

     15 files     675 suites   3m 15s ⏱️
   493 tests    493 ✔️ 0 💤 0
2 465 runs  2 465 ✔️ 0 💤 0

Results for commit 74605f1.

Signed-off-by: Christian Wolf <[email protected]>
Copy link
Collaborator

@christianlupus christianlupus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@christianlupus christianlupus merged commit 78312b9 into nextcloud:master Oct 27, 2022
@MarcelRobitaille MarcelRobitaille deleted the axios-logging branch January 22, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants