mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
94f5d52fdc
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com>
2.1 KiB
2.1 KiB
Debug
Get debug logs
Code samples
curl $CODER_AGENT_DEBUG_ADDRESS/debug/logs
GET /debug/logs
Get the first 10MiB of data from $CODER_AGENT_LOG_DIR/coder-agent.log.
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK |
Get debug info for magicsock
Code samples
curl $CODER_AGENT_DEBUG_ADDRESS/debug/magicsock
GET /debug/magicsock
See Tailscale's documentation.
Toggle debug logging for magicsock
Code samples
curl $CODER_AGENT_DEBUG_ADDRESS/debug/magicsock/debug-logging/true
GET /debug/magicsock/debug-logging/{state}
Set whether debug logging is enabled. See Tailscale's documentation for more information.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
state |
path | boolean | true | Debug logging state |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK |
Get debug manifest
Code samples
curl $CODER_AGENT_DEBUG_ADDRESS/debug/manifest
GET /debug/manifest
Get the manifest the agent fetched from coderd upon startup.
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | agentsdk.Manifest |