This repository was archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Debugging
Gabriel edited this page Jul 21, 2022
·
1 revision
To enable advanced debugging/logging in the core module, inside your DeckClient configuration scope you'll want to enable these options:
| Key | Meaning | Default |
|---|---|---|
logRequests |
When activated, starts to log everything* about the requests/responses, including the endpoint, method, body, and headers. | ❌ |
logEventPayloads |
When activated, starts logging the body of all events, including their opcode, last message id, etc... | ❌ |
- The log level can be changed. To do that, just use
client.rest.logLevel = LogLevel.NEW_LOG_LEVEL_HERE. By the way, this does not include the token, it's obfuscated when logged.
val client = DeckClient("INSERT_YOUR_TOKEN_HERE") {
logRequests = true
logEventPayloads = true
}Or you can just replace both configuration lines with debugMode().
This is Deck's official documentation. For questions, you can either contact me in Guilded (https://www.guilded.gg/gabriel) or in Discord (Gaabriel#1911). If you don't have any of those, try opening an issue!
I'm not a native English speaker, so for any typos or grammar mistakes please do contact me as well.