Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

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().

Clone this wiki locally