This repository was archived by the owner on Jan 14, 2026. It is now read-only.
feat(client): add debug mode with configurable log levels#41
Merged
Conversation
Add an optional debug mode for local development that is disabled by
default. The logger provides four levels: none, info, debug, and trace.
Key features:
- Internal Logger utility with level-based filtering and auto-sanitization
- Sensitive data (apiKey, algodToken, signatures) automatically redacted
- Strategic failure logging in execute() to capture swap failure context
- Zero overhead when disabled (default 'none' level)
Configure via debugLevel option on DeflexClient:
new DeflexClient({ apiKey: '...', debugLevel: 'debug' })
github-actions Bot
added a commit
that referenced
this pull request
Jan 13, 2026
# [1.8.0](v1.7.0...v1.8.0) (2026-01-13) ### Features * **client:** add debug mode with configurable log levels ([#41](#41)) ([420c41d](420c41d))
Contributor
|
🎉 This PR is included in version 1.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a debug logging system to the Deflex SDK with configurable log levels (
none,info,debug,trace). This enables developers to get visibility into SDK operations during development and troubleshoot swap failures without exposing sensitive data like API keys.Changes
debugLeveloption inDeflexConfigParamswith four levels:none(default),info,debug,traceUsage
Test plan
pnpm test)pnpm typecheck)