Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: add tailscale magicsock debug logging controls #8982

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

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

deansheather
Copy link
Member

Adds /debug/magicsock/debug-logging/true (and false) to the agent debug server. The route design is designed to be easily curlable without having to deal with -X POST -H "Content-Type: application/json" --data '{"enabled": true}', which is why it's not REST-y.

Adds CODER_MAGICSOCK_DEBUG_LOGGING env var, which when combined with coder -v will enable magicsock debug logging.

The magicsock debug logging is VERY verbose which is why I don't want to enable it by default on both the client and the agent. It does have some useful data though so it's nice to have the option to view it.

@deansheather deansheather enabled auto-merge (squash) August 8, 2023 17:45
@deansheather deansheather merged commit 3c52b01 into main Aug 8, 2023
@deansheather deansheather deleted the dean/add-magicsock-debug-logging branch August 8, 2023 17:56
@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants