Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug logging on every network request #1291

Merged
merged 4 commits into from
Oct 27, 2022

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 <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
@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 <github@christianwolf.email>
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